Home » MODDING HQ 1.13 » Flugente's Magika Workshop » New feature: Take prisoners, interrogate them
Re: New feature: Take prisoners, interrogate them[message #340650 is a reply to message #339758] Tue, 21 April 2015 23:32 Go to previous messageGo to previous message
Flugente

 
Messages:3507
Registered:April 2009
Location: Germany
If, say, some modder were to create a gigantic prison map, then there might be more than 16 cells in there. As I don't feel like adding a gazillion stupid tags, I've instead made the tags in SectorNames.xml a bit better - there can now be and infinite number of prison rooms (well, limited to 2^16 - 1 really due to room numbers, but... yeah).

Old usage:
...
<usPrisonRoomNumber00>41</usPrisonRoomNumber00>
<usPrisonRoomNumber01>42</usPrisonRoomNumber01>
<usPrisonRoomNumber02>44</usPrisonRoomNumber02>
<usPrisonRoomNumber03>45</usPrisonRoomNumber03>
...


New usage:
...
<usPrisonRoomNumber>41</usPrisonRoomNumber>
<usPrisonRoomNumber>42</usPrisonRoomNumber>
<usPrisonRoomNumber>44</usPrisonRoomNumber>
<usPrisonRoomNumber>45</usPrisonRoomNumber>
...
Looks similar, but saves a lot of lines (why I had 16 different tags in the first place I don't know. Me being stupid guess).

Using a room multiple times is possible. Prisoners are distributed on the rooms in the order the rooms are in the xml, starting from the 2nd room, with the order repeating itself.
Prisoner bodytypes are in the order of REGMALE, BIGMALE, STOCKYMALE, REGFEMALE, REGMALE, ..., just in case you want to have strict gender separation in your prisons.

This code change is active as of r7826 and GameDir r2234. The changed Map/SectorNames.xml is required due to the changed tags ( but as nobody would ever be so careless as to use a new exe without the correct xml data, this will surely not be a problem angel ).



I know now that it could never work between us, as much as we wanted to, it could never be! Not because you're a rabbit, but because you're black.

If you want, you can donate to me. This will not affect how and what I code, and I will not code specific features in return. I will be thankful though.

Report message to a moderator

Captain

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message icon7.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: New feature: Externally fed machineguns
Next Topic: New feature: Externalised Merchants
Goto Forum:
  


Current Time: Fri Nov 29 10:32:24 GMT+2 2024

Total time taken to generate the page: 0.08361 seconds