RimWorld

RimWorld

Desks are better than blackboards - CSL Retexture
Dylan 5 Aug, 2021 @ 5:16pm
Desks with Blackboard, support for lesson graphics
With 1.7.1.1 I added some things that should enable the 'WallBlackboard' to have lesson graphics aswell when together with the Desks, the 'CSL Blackboard Retexture'-mod needs:
<devNote>SupportBlackboard_BaseOverlay</devNote>
in 'DeskCompatibilityPatch.xml'

like this:
<label>blackboard</label> <devNote>SupportBlackboard_BaseOverlay</devNote> <!--<thingClass>Blackboard.Building_Blackboard</thingClass>-->

and the 'Desks are better than blackboards'-mod would need a new patch-file like so \Patches\Patch.xml
<?xml version="1.0" encoding="utf-8"?> <Patch> <Operation Class="PatchOperationReplace"> <xpath>/Defs/ThingDef[defName="Blackboard"]/devNote</xpath> <value> <devNote>TeachingLocation_NoOverlay</devNote><!--Overlay disabled--> </value> </Operation> </Patch>

aswell as removing the blank overlay-textures
!!This is needed so that they show up on the WallBlackboard!
(they are no longer needed, as the patch adds:
<devNote>TeachingLocation_NoOverlay</devNote>
which turns them off for those desks)

It did work ok for me when I tested it, let me know if you get it working.
Last edited by Dylan; 5 Aug, 2021 @ 5:24pm
< >
Showing 1-12 of 12 comments
Capi  [developer] 6 Aug, 2021 @ 2:27am 
Perfect, I'll add the patch and remove the textures right away
Capi  [developer] 6 Aug, 2021 @ 2:40am 
Just updated, will test later but everything looks fine
Dylan 6 Aug, 2021 @ 9:31am 
Nice! looking good for me aswell with both mods
Si-Cafe 6 Aug, 2021 @ 4:33pm 
Thank you for the update.
Also, I removed the replace label patch by my blackboard retexture mod side.
This was due to the complexity of the language translation process.
Please make a replace label patch by your desk mod side in the future. Thank you.
Dylan 6 Aug, 2021 @ 11:53pm 
Do you mean the
<xpath>/Defs/ThingDef[defName="Blackboard"]/label</xpath> <value> <label>teacher's desk</label> </value>
part? does it not still make sense to keep it in there when both mods are active?
Si-Cafe 7 Aug, 2021 @ 1:35am 
Yes, it is.

If the language of the main is English, there is no problem, but if someone wants to apply other languages, it will be a bit troublesome.
Dylan 7 Aug, 2021 @ 1:35am 
ah ok, that makes sense
Dylan 7 Aug, 2021 @ 1:43am 
Originally posted by Si-Cafe:
Yes, it is
I think you messed up the DevNote with the last update
<li Class="PatchOperationReplace"> <xpath>/Defs/ThingDef[defName="Blackboard"]/devNote</xpath> <value> <devNote>TeachingLocation</devNote> </value> </li>
should not be there, 'TeachingLocation_NoOverlay' like it is in 'Desks are better than blackboards' without it, is correct

(otherwise it now shows the overlay for them - could maybe also be depending on the order, but 'TeachingLocation_NoOverlay' is correct for the teaching-desks either way)
Last edited by Dylan; 7 Aug, 2021 @ 2:36am
Si-Cafe 7 Aug, 2021 @ 10:25am 
I'm sorry. As the name TeachingLocation_NoOverlay suggests, I misunderstood that overlays would be disabled.
I'll remove unnecessary replace patch lines.
Si-Cafe 7 Aug, 2021 @ 11:06am 
I fixed it and tested it again, it worked.
Is overlay only work when the blackboard and desk are in the "classroom", right?
I was wondering because the overlay didn't show up in the test where I suddenly placed a blackboard and a desk in the initial map & god mode.
Dylan 7 Aug, 2021 @ 5:12pm 
yeah, sorry it is not really that clear, the teacher-desk is disabled overlay wise, but if there is also a blackboard connected to one of the same school-desks the teacher desk show its overlay anyway but moves it over to the first connected wallblackboard (so inly one works and only if a teacher desk is there with both mods (the thing-class of the blackboard is what controls it, so only an object with that could create an overlay in general, and with both mods the wallBlackboard does not have it), when your blackboard mod is alone it would just replace mine and should be okay either way)
Si-Cafe 7 Aug, 2021 @ 7:43pm 
I see. Thank you.
Last edited by Si-Cafe; 7 Aug, 2021 @ 7:43pm
< >
Showing 1-12 of 12 comments
Per page: 1530 50