[SOLVED] Problems with my Achievements mod for Zandronum
Posted: Tue Nov 26, 2013 9:28 pm
Hi. I'm making an Achievements mod for Zandronum, but i can't get the achievement progresses to show up. Either in Singleplayer or in Multiplayer. I've been trying to fix it for a VERY long time now, so if anyone would be kind to help me that'll be greatly appreciated. Further information below.
P.S: Sorry for my bad english.
Ok so here's the ACS script source code ( I know, it's long and hard to understand :( ):
Script
[ LINK REMOVED: I don't want anyone to lurk in my source code any more ;P ]
Core wad:
http://www.mydoomsite.com/WADS/AchievementsDOOM2.pk3
'Function void GetProgress(void)' is the function that'll read the progresses of the Achievements from the .ini. It will also convert the progresses to smaller numbers (example: 254 = 1)
'Script 700 (int view)' is the script that shows the Achievements in several pages, and also the progresses.
'Script 712(int x, Int who)' is the script that unlocks an achievement and save it to the .ini.
'Script 703 (int x)' is the script that raises the progresses values and saves them to the .ini.
'Script 702 (int x)' prints the unlocked achievement on the screen so that all players can se who unlocked which achievement.
'Script 704 DEATH' save's the Achievements and also the progresses to the .ini when the player dies.
And script 710 and down are just testning. Ignore them.
Current achievement list ('P' stands for progress):
x_ACH_P1, x_ACH_1 - Imp Killer
x_ACH_P2, x_ACH_2 - Imp Slainer
x_ACH_P3, x_ACH_3 - Zombie Killer
x_ACH_4 - Frenemy
x_ACH_5 - Going Pro
x_ACH_6 - Hard To Kill
x_ACH_LAST - My DOOM site
When the progress shows up when script 700 is called it only shows for example:
Imp Killer
0/0
Even if I've killed imps and set the unlock-value to 50.
It should show for example:
Imp Killer
23/50
P.S: Sorry for my bad english.
Ok so here's the ACS script source code ( I know, it's long and hard to understand :( ):
Script
[ LINK REMOVED: I don't want anyone to lurk in my source code any more ;P ]
Core wad:
http://www.mydoomsite.com/WADS/AchievementsDOOM2.pk3
'Function void GetProgress(void)' is the function that'll read the progresses of the Achievements from the .ini. It will also convert the progresses to smaller numbers (example: 254 = 1)
'Script 700 (int view)' is the script that shows the Achievements in several pages, and also the progresses.
'Script 712(int x, Int who)' is the script that unlocks an achievement and save it to the .ini.
'Script 703 (int x)' is the script that raises the progresses values and saves them to the .ini.
'Script 702 (int x)' prints the unlocked achievement on the screen so that all players can se who unlocked which achievement.
'Script 704 DEATH' save's the Achievements and also the progresses to the .ini when the player dies.
And script 710 and down are just testning. Ignore them.
Current achievement list ('P' stands for progress):
x_ACH_P1, x_ACH_1 - Imp Killer
x_ACH_P2, x_ACH_2 - Imp Slainer
x_ACH_P3, x_ACH_3 - Zombie Killer
x_ACH_4 - Frenemy
x_ACH_5 - Going Pro
x_ACH_6 - Hard To Kill
x_ACH_LAST - My DOOM site
When the progress shows up when script 700 is called it only shows for example:
Imp Killer
0/0
Even if I've killed imps and set the unlock-value to 50.
It should show for example:
Imp Killer
23/50