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>
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>