Help with Acehart's Save/Load System

FarAwaY

TH.net Regular
Reaction score
9
First, I'm posting about a bug that I need fixed for Acehart's Save/Load System:
http://www.thehelper.net/forums/showthread.php?t=49392

The bug is pretty simple. Let's say your name is Acehart when you save your character. When you change your name backwards or something like traheca or HartAce, it will still load your character.

Does anyone know how to fix this bug?
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
890
Try this:

Find the main body of the code for the save/load system. Should be in Trigger Editor -> <Map Name> (found at the top of the trigger list). Then find the function named SaveLoad_EncodeVerify. Locate this part:

JASS:
if udg_SaveLoad_UsePlayername == true then
        loop
            set j = j + SaveLoad_EncodeChar(SubString(name,i,i + 1))
            set i = i + 1
            exitwhen i &gt;= StringLength(name)
        endloop
    endif


Change this line:

set j = j + SaveLoad_EncodeChar(SubString(name,i,i + 1))

to this:

set j = 3*j + SaveLoad_EncodeChar(SubString(name,i,i + 1))

Save, done.
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
890
Any codes you created before this change won't work. I tested this change to great effect when creating a new one, however....
 

FarAwaY

TH.net Regular
Reaction score
9
Eh? Nope I tested it both with previous and new codes. They dont seem to work.

EDIT: Nevermind...maybe I typed the wrong code or something. When I retried it, it works. Thanks alot. +Rep :)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top