RimWorld

RimWorld

Desks are better than blackboards - CSL Retexture
Dylan 5. aug. 2021 kl. 17:16
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.
Sidst redigeret af Dylan; 5. aug. 2021 kl. 17:24
< >
Viser 1-12 af 12 kommentarer
Capi  [udvikler] 6. aug. 2021 kl. 2:27 
Perfect, I'll add the patch and remove the textures right away
Capi  [udvikler] 6. aug. 2021 kl. 2:40 
Just updated, will test later but everything looks fine
Dylan 6. aug. 2021 kl. 9:31 
Nice! looking good for me aswell with both mods
Si-Cafe 6. aug. 2021 kl. 16:33 
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 kl. 23:53 
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 kl. 1:35 
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 kl. 1:35 
ah ok, that makes sense
Dylan 7. aug. 2021 kl. 1:43 
Oprindeligt skrevet af 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)
Sidst redigeret af Dylan; 7. aug. 2021 kl. 2:36
Si-Cafe 7. aug. 2021 kl. 10:25 
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 kl. 11:06 
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 kl. 17:12 
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 kl. 19:43 
I see. Thank you.
Sidst redigeret af Si-Cafe; 7. aug. 2021 kl. 19:43
< >
Viser 1-12 af 12 kommentarer
Per side: 1530 50