[v0.1.1] Stupid Achievements

Post your example zscripts/ACS scripts/etc here.

Re: [v0.1] Stupid Achievements

Postby robert_banks » Mon Aug 03, 2020 10:56 am

I can't PM, as my account is too young, here is my achievement:
Code: Select allExpand view
class ni_departure : sa_Achievement
{
  Default
  {
    sa_Achievement.name "Early Departure";
    sa_Achievement.description "Decide it's not worth it";
    sa_Achievement.borderColor 0xA30000;
    sa_Achievement.boxColor    0xff0000;
  }
}

just a small test achievment.
Here is the ACS line that causes the crash:
Code: Select allExpand view
ScriptCall("sa_Achiever", "achieve", "ni_departure");

I load the pk3 file with my achievement after the stupid achievements library. The achievements menu in the settings works fine.
robert_banks
 
Joined: 02 Jul 2020
Location: poland
Discord: Bodhi#8030
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: [v0.1] Stupid Achievements

Postby m8f » Mon Aug 03, 2020 12:19 pm

Hmm. What if you change sa_Achiever.achieve signature so it looks like this:
Code: Select allExpand view
  static
  void achieve(String achievementClass)
  {
    achievePrivate(achievementClass);
  }

in zscript/StupidAchievement.zs.

One more thing: please replace "sa_" namespace with your own.
User avatar
m8f
dreamer
 
 
 
Joined: 29 Dec 2017
Location: Siberia (UTC+7)
Discord: m8f#0629
Github ID: mmaulwurff

Re: [v0.1] Stupid Achievements

Postby robert_banks » Mon Aug 03, 2020 12:36 pm

It works now, thank you for the help.
robert_banks
 
Joined: 02 Jul 2020
Location: poland
Discord: Bodhi#8030
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: [v0.1] Stupid Achievements

Postby m8f » Mon Aug 03, 2020 8:26 pm

Version 0.1.1 is up.
Changelog:
- fixed access to achievements from ACS.
User avatar
m8f
dreamer
 
 
 
Joined: 29 Dec 2017
Location: Siberia (UTC+7)
Discord: m8f#0629
Github ID: mmaulwurff

Previous

Return to Script Library

Who is online

Users browsing this forum: No registered users and 1 guest