RimWorld
Desks are better than blackboards - CSL Retexture
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.
最近の変更はDylanが行いました; 2021年8月5日 17時24分
< >
1-12 / 12 のコメントを表示
Capi  [開発者] 2021年8月6日 2時27分 
Perfect, I'll add the patch and remove the textures right away
Capi  [開発者] 2021年8月6日 2時40分 
Just updated, will test later but everything looks fine
Nice! looking good for me aswell with both mods
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 2021年8月6日 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?
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.
ah ok, that makes sense
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)
最近の変更はDylanが行いました; 2021年8月7日 2時36分
I'm sorry. As the name TeachingLocation_NoOverlay suggests, I misunderstood that overlays would be disabled.
I'll remove unnecessary replace patch lines.
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 2021年8月7日 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)
I see. Thank you.
最近の変更はSi-Cafeが行いました; 2021年8月7日 19時43分
< >
1-12 / 12 のコメントを表示
ページ毎: 1530 50