PDA

View Full Version : Odd problem with Savage Worlds module



Mgrancey
July 15th, 2012, 08:41
I have two weird problems with a module for Savage.

The first is that I have several reference_categorisedlists that have a big gap between the row with labels and the content of the list.

The second problem is concerning a list that is specifcally for "vehicle"s and it works for the GM side, but on the player side generates a
"Script Error: [string "scripts/reference_categorisedlist.lua"]:51: attempt to index a nil value

and displays an empty table.

Any ideas as to what the problem might be, I based my vehicle complex element format off of how they are saved when exported. Going to try swapping it back to how it is internally for the GM stuff.

phantomwhale
July 15th, 2012, 12:42
Might need some code examples to help with this one, or a copy of the module to look at.

Mgrancey
July 15th, 2012, 15:35
Code for actual list


<chinese_weapon_list>
<name type="string">Chinese Weapons</name>
<catname type="string">Chinese Weapons</catname>
<itemclass type="string">weapon</itemclass>
<source type="string">reference.weapons@DLR The Flood</source>
<width type="number">300</width>
<height type="number">600</height>
<columns>
<col_001>
<name type="string">name</name>
<heading type="string">Type</heading>
<type type="string">tablestringfield</type>
<width type="number">140</width>
</col_001>
<col_002>
<name type="string">damage</name>
<heading type="string">Damage</heading>
<type type="string">tablestringfield</type>
<width type="number"> 70</width>
</col_002>
<col_003>
<name type="string">wpweight</name>
<heading type="string">Weight</heading>
<type type="string">tablefield</type>
<width type="number">40</width>
</col_003>
<col_004>
<name type="string">cost</name>
<heading type="string">Cost</heading>
<type type="string">tablestringfield</type>
<width type="number">45</width>
</col_004>
<col_005>
<name type="string">weaponnotes</name>
<type type="string">tablestringfield</type>
<heading type="string">Notes</heading>
</col_005>
</columns>
</chinese_weapon_list>


Calls up the list


<_01_ChineseWeapons>
<listlink type="windowreference">
<class>reference_categorisedlist</class>
<recordname>summarylists.chinese_weapon_list@DLR The Flood</recordname>
</listlink>
<name type="string">Chinese Weapons</name>
</_01_ChineseWeapons>v


Vehicle list


<vehicle_list>
<name type="string">Vehicles</name>
<catname type="string">Vehicle</catname>
<itemclass type="string">vehicle</itemclass>
<source type="string">reference.vehicle@DLR The Flood</source>
<width type="number">750</width>
<height type="number">600</height>
<columns>
<col_001>
<name type="string">name</name>
<heading type="string">Vehicle</heading>
<type type="string">tablestringfield</type>
<width type="number">110</width>
</col_001>
<col_002>
<name type="string">crew</name>
<heading type="string">Crew</heading>
<type type="string">tablestringfield</type>
<width type="number">75</width>
</col_002>
<col_003>
<name type="string">acc</name>
<heading type="string">Acc.</heading>
<type type="string">tablestringfield</type>
<width type="number">50</width>
</col_003>
<col_004>
<name type="string">topspeed</name>
<heading type="string">Top Speed</heading>
<type type="string">tablestringfield</type>
<width type="number">75</width>
</col_004>
<col_005>
<name type="string">toughness</name>
<heading type="string">Toughness</heading>
<type type="string">tablestringfield</type>
<width type="number">110</width>
</col_005>
<col_006>
<name type="string">cost</name>
<heading type="string">Cost</heading>
<type type="string">tablestringfield</type>
<width type="number">80</width>
</col_006>
<col_007>
<name type="string">notes</name>
<heading type="string">Notes</heading>
<type type="string">tablestringfield</type>
</col_007>
</columns>
</vehicle_list>



One of the calls for it


<_03_Vehicles>
<listlink type="windowreference">
<class>reference_categorisedlist</class>
<recordname>summarylists.vehicle_list@DLR The Flood</recordname>
</listlink>
<name type="string">Vehicles</name>
</_03_Vehicles>

Mgrancey
July 16th, 2012, 09:52
Fixed all problems but the one with the odd spacing at the top of the reference_categorisedlist windows, and that might be part of the ruleset stuff, becuase its the same in the SWEG guides too.

phantomwhale
July 16th, 2012, 09:56
Oh good - was going to be a while until I had a spare moment to look at that :)

I was also about to ask "What odd spacing problem" - but yep, just seen it myself ?!

Don't think I've seen that before, so it might be a FG v2.9 compatibility thing. I'll get a fix in for SWEX 3.3 and post an "in the meantime" patch if I can.

phantomwhale
July 16th, 2012, 11:14
Big gap Fixed for 3.3, and I've also put a patch extension up here, in case you'd like it fixed today !

https://www.fantasygrounds.com/forums/showthread.php?p=128034