Jump to content
270soft Forum
Sign in to follow this  
daons

Australia 2013 Two-Party Preference Votes

Recommended Posts

Hi, I've just downloaded the latest PM4E Australia 2013 program and am in the process of creating a new scenario through the campaign editor and editing XML files. With two parties i have no problems but when I add more, I am unable to view the Two-Party Preference Votes. It is very strange as there are more than two parties in the standard 2013 scenario in Australia. As well as this I have made sure that the 'preference_voting.XML' is exactly like the Australia 2013 file.

Everytime I click on the Preference vote button the software gives me this message.

Access violation at address 005A1A3E in module 'pm4e-aus-2013.exe'.

Read of address 00000010

Maybe it is just a bug as the Aussie game is quite new?

Any ideas?

Share this post


Link to post
Share on other sites

<?xml version="1.0" encoding="utf-8"?>
<preference_voting>
<!-- this means that if a Liberal candidate is eliminated, x% of Liberal votes go to Labor, and so on -->
<!-- if target_party percentages sum to > or < 100, will re-calculate them automatically -->
<!-- if a party doesn't exist in a constituency, it is removed from the calculation before re-calculating -->
<!-- if a party isn't listed, it receives 0% -->
<!-- if a party with the same name is listed, it is ignored -->
<!-- if all parties are at 0%, then the first party in the game is assigned all the voters -->
<voter_flow source_party_id="conservative">
<target_party id="conservative" percentage="0" />
<target_party id="liberal" percentage="10" />
<target_party id="labour" percentage="5" />
<target_party id="serb" percentage="10" />
<target_party id="russian" percentage="5" />
<target_party id="lithuanian" percentage="10" />
<target_party id="korean" percentage="10" />
<target_party id="jewish" percentage="10" />
<target_party id="kazakh" percentage="10" />
<target_party id="reunification" percentage="10" />
<target_party id="green" percentage="5" />
<target_party id="independent" percentage="10" />
</voter_flow>
<voter_flow source_party_id="liberal">
<target_party id="conservative" percentage="10" />
<target_party id="liberal" percentage="0" />
<target_party id="labour" percentage="5" />
<target_party id="serb" percentage="10" />
<target_party id="russian" percentage="10" />
<target_party id="lithuanian" percentage="10" />
<target_party id="korean" percentage="10" />
<target_party id="jewish" percentage="10" />
<target_party id="kazakh" percentage="10" />
<target_party id="reunification" percentage="10" />
<target_party id="green" percentage="10" />
<target_party id="independent" percentage="10" />
</voter_flow>
<voter_flow source_party_id="labour">
<target_party id="conservative" percentage="5" />
<target_party id="liberal" percentage="10" />
<target_party id="labour" percentage="0" />
<target_party id="serb" percentage="10" />
<target_party id="russian" percentage="20" />
<target_party id="lithuanian" percentage="5" />
<target_party id="korean" percentage="5" />
<target_party id="jewish" percentage="10" />
<target_party id="kazakh" percentage="5" />
<target_party id="reunification" percentage="5" />
<target_party id="green" percentage="10" />
<target_party id="independent" percentage="10" />
</voter_flow>
<voter_flow source_party_id="serb">
<target_party id="conservative" percentage="10" />
<target_party id="liberal" percentage="10" />
<target_party id="labour" percentage="10" />
<target_party id="serb" percentage="0" />
<target_party id="russian" percentage="20" />
<target_party id="lithuanian" percentage="5" />
<target_party id="korean" percentage="5" />
<target_party id="jewish" percentage="10" />
<target_party id="kazakh" percentage="5" />
<target_party id="reunification" percentage="5" />
<target_party id="green" percentage="5" />
<target_party id="independent" percentage="10" />
</voter_flow>
<voter_flow source_party_id="russian">
<target_party id="conservative" percentage="5" />
<target_party id="liberal" percentage="10" />
<target_party id="labour" percentage="10" />
<target_party id="serb" percentage="10" />
<target_party id="russian" percentage="0" />
<target_party id="lithuanian" percentage="5" />
<target_party id="korean" percentage="5" />
<target_party id="jewish" percentage="10" />
<target_party id="kazakh" percentage="5" />
<target_party id="reunification" percentage="5" />
<target_party id="green" percentage="5" />
<target_party id="independent" percentage="10" />
</voter_flow>
<voter_flow source_party_id="lithuanian">
<target_party id="conservative" percentage="10" />
<target_party id="liberal" percentage="10" />
<target_party id="labour" percentage="5" />
<target_party id="serb" percentage="5" />
<target_party id="russian" percentage="5" />
<target_party id="lithuanian" percentage="0" />
<target_party id="korean" percentage="5" />
<target_party id="jewish" percentage="5" />
<target_party id="kazakh" percentage="5" />
<target_party id="reunification" percentage="5" />
<target_party id="green" percentage="5" />
<target_party id="independent" percentage="10" />
</voter_flow>
<voter_flow source_party_id="korean">
<target_party id="conservative" percentage="10" />
<target_party id="liberal" percentage="10" />
<target_party id="labour" percentage="5" />
<target_party id="serb" percentage="5" />
<target_party id="russian" percentage="5" />
<target_party id="lithuanian" percentage="5" />
<target_party id="korean" percentage="0" />
<target_party id="jewish" percentage="5" />
<target_party id="kazakh" percentage="5" />
<target_party id="reunification" percentage="5" />
<target_party id="green" percentage="5" />
<target_party id="independent" percentage="10" />
</voter_flow>
<voter_flow source_party_id="jewish">
<target_party id="conservative" percentage="10" />
<target_party id="liberal" percentage="10" />
<target_party id="labour" percentage="10" />
<target_party id="serb" percentage="10" />
<target_party id="russian" percentage="5" />
<target_party id="lithuanian" percentage="5" />
<target_party id="korean" percentage="5" />
<target_party id="jewish" percentage="0" />
<target_party id="kazakh" percentage="5" />
<target_party id="reunification" percentage="5" />
<target_party id="green" percentage="5" />
<target_party id="independent" percentage="10" />
</voter_flow>
<voter_flow source_party_id="kazakh">
<target_party id="conservative" percentage="10" />
<target_party id="liberal" percentage="10" />
<target_party id="labour" percentage="5" />
<target_party id="serb" percentage="5" />
<target_party id="russian" percentage="5" />
<target_party id="lithuanian" percentage="5" />
<target_party id="korean" percentage="5" />
<target_party id="jewish" percentage="5" />
<target_party id="kazakh" percentage="0" />
<target_party id="reunification" percentage="5" />
<target_party id="green" percentage="5" />
<target_party id="independent" percentage="10" />
</voter_flow>
<voter_flow source_party_id="reunification">
<target_party id="conservative" percentage="10" />
<target_party id="liberal" percentage="10" />
<target_party id="labour" percentage="5" />
<target_party id="serb" percentage="5" />
<target_party id="russian" percentage="5" />
<target_party id="lithuanian" percentage="5" />
<target_party id="korean" percentage="5" />
<target_party id="jewish" percentage="5" />
<target_party id="kazakh" percentage="5" />
<target_party id="reunification" percentage="0" />
<target_party id="green" percentage="5" />
<target_party id="independent" percentage="10" />
</voter_flow>
<voter_flow source_party_id="green">
<target_party id="conservative" percentage="5" />
<target_party id="liberal" percentage="10" />
<target_party id="labour" percentage="10" />
<target_party id="serb" percentage="5" />
<target_party id="russian" percentage="5" />
<target_party id="lithuanian" percentage="5" />
<target_party id="korean" percentage="5" />
<target_party id="jewish" percentage="5" />
<target_party id="kazakh" percentage="5" />
<target_party id="reunification" percentage="5" />
<target_party id="green" percentage="0" />
<target_party id="independent" percentage="10" />
</voter_flow>
<voter_flow source_party_id="independent">
<target_party id="conservative" percentage="10" />
<target_party id="liberal" percentage="10" />
<target_party id="labour" percentage="10" />
<target_party id="serb" percentage="10" />
<target_party id="russian" percentage="10" />
<target_party id="lithuanian" percentage="10" />
<target_party id="korean" percentage="10" />
<target_party id="jewish" percentage="10" />
<target_party id="kazakh" percentage="10" />
<target_party id="reunification" percentage="10" />
<target_party id="green" percentage="10" />
<target_party id="independent" percentage="0" />
</voter_flow>
</preference_voting>

Share this post


Link to post
Share on other sites

Ok, I think I know what the problem is. You're using the preference_voting_new.xml file for the basis. That's an experimental XML file that isn't currently used by the game engine. Make sure to use the preference_voting.xml file, including the syntax contained in it. If this doesn't resolve the problem, please let me know.

Share this post


Link to post
Share on other sites

Ok, I think I know what the problem is. You're using the preference_voting_new.xml file for the basis. That's an experimental XML file that isn't currently used by the game engine. Make sure to use the preference_voting.xml file, including the syntax contained in it. If this doesn't resolve the problem, please let me know.

Brilliant!

That sorted it out, thank you :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×