PDA

View Full Version : Edited gamelements, repacked the file, and rulset fails to load



SovietOnion
January 10th, 2015, 19:34
Hey everyone.

Been having a great time learning this program, as it will be my first time running as a GM. I'm using the WH40KDarkHeresy rulset for this campaign. I backed up the .pak file, and extracted it. Edited the gamelements file to change the grid distance from five feet to 2 meters. Double and triple checked that I didn't bust the code anywhere. Remade the files into an archive, changed extension to .pak, and load up FG2. I get this error:

https://gyazo.com/4af76d399744ef07d57786f2e6adb302

I've seen other errors about this online, but nothing about my specific problem. If I delete the rulset and copy over my backup, it works fine. This is for all intents and purposes my last change I need to make before I can start my players on their adventure.

Any help or suggestions?

Gamelements file as it is now below:

<?xml version="1.0" encoding="iso-8859-1"?>

<!--
Please see the license.html file included with this distribution for
attribution and copyright information.
-->

<root>
<distance>
<base>5</base>
<diagmult>1.5</diagmult>
<suffix>m</suffix>
</distance>

<die name="dF" merge="delete" />

<customdie name="d5">
<model>d10</model>
<menuicon>customdice</menuicon>
<script>
function onValue(result)
return math.ceil(result/2);
end
</script>
</customdie>

<customdie name="d20">
<model>d20</model>
<menuicon>customdice</menuicon>
<script>
function onValue(result)
return result;
end
</script>
</customdie>
<customdie name="d12">
<model>d12</model>
<menuicon>customdice</menuicon>
<script>
function onValue(result)
return result;
end
</script>
</customdie>
<customdie name="d8">
<model>d8</model>
<menuicon>customdice</menuicon>
<script>
function onValue(result)
return result;
end
</script>
</customdie>
<customdie name="d6">
<model>d6</model>
<menuicon>customdice</menuicon>
<script>
function onValue(result)
return result;
end
</script>
</customdie>
<customdie name="d4">
<model>d4</model>
<menuicon>customdice</menuicon>
<script>
function onValue(result)
return result;
end
</script>
</customdie>
<customdie name="d3">
<model>d6</model>
<menuicon>customdice</menuicon>
<script>
function onValue(result)
return math.ceil(result/2);
end
</script>
</customdie>
<customdie name="d2">
<model>d6</model>
<menuicon>customdice</menuicon>
<script>
function onValue(result)
return math.ceil(result/3);
end
</script>
</customdie>
</root>

Trenloe
January 10th, 2015, 19:51
1) Did you repackage the file with ZIP compression before renaming to .pak? i.e. don't use RAR, 7z, etc. compression.
2) When you ZIP up the file do it from within the directory where the base.xml file is - i.e. select all of the files and folders within the ruleset directory and ZIP those up from that location. Don't ZIP by selecting just your custom ruleset directory from within the <FG App Data>\rulesets directory.