[RPG] Save/Load System

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

redSasuke597
Member
Posts: 59
Joined: December 21st, 2009, 7:11 pm
Title: Mini-Hacker

[RPG] Save/Load System

Post by redSasuke597 »

Hey i would like to get some help to get a save/load system for an RPG map. Not a relly long one like this one...

Code: Select all

-load VVVVV4D-VVAVAD4-VADFA3-VGADGH5-AJDI3TG-08FAJ
i want something that is like this

Code: Select all

-load V4ED-AV4D-VAG3-H4HJ
Also i would like it in GUI form not Jass/ vJass or MUI or something it has to be GUI
Image
User avatar
Nuuby
Forum Staff
Posts: 519
Joined: October 18th, 2010, 8:43 am

Re: [RPG] Save/Load System

Post by Nuuby »

redSasuke597 wrote:Hey i would like to get some help to get a save/load system for an RPG map. Not a relly long one like this one...

Code: Select all

-load VVVVV4D-VVAVAD4-VADFA3-VGADGH5-AJDI3TG-08FAJ
i want something that is like this

Code: Select all

-load V4ED-AV4D-VAG3-H4HJ
Also i would like it in GUI form not Jass/ vJass or MUI or something it has to be GUI
Depends what on you are saving. If you're going to save items it's probably going to have to be longer than that.


And frankly, the length of the save code can go to hell. We have gamecapture
redSasuke597
Member
Posts: 59
Joined: December 21st, 2009, 7:11 pm
Title: Mini-Hacker

Re: [RPG] Save/Load System

Post by redSasuke597 »

true but the long code is from a level 10 char without any items...
the short one is a level 150 with 2 items...
i want a shorter code not like 100 characters for a level 20 char :P
Could anyone help me code something like that in GUI
Image
User avatar
Nuuby
Forum Staff
Posts: 519
Joined: October 18th, 2010, 8:43 am

Re: [RPG] Save/Load System

Post by Nuuby »

redSasuke597 wrote:true but the long code is from a level 10 char without any items...
the short one is a level 150 with 2 items...
i want a shorter code not like 100 characters for a level 20 char :P
Could anyone help me code something like that in GUI
Since you're remaking the save system, I take it that it's your map? Anyway, most GUI save systems are pretty inefficient. All the better ones at least have some jass, so if you're not going to learn jass. Just put in a link to gamecapture /:
redSasuke597
Member
Posts: 59
Joined: December 21st, 2009, 7:11 pm
Title: Mini-Hacker

Re: [RPG] Save/Load System

Post by redSasuke597 »

well can you send a link to somewhere i can learn jass?
Image
User avatar
haxorico
Super Moderator
Posts: 3195
Joined: February 24th, 2009, 1:31 pm
Location: JEW LAND
Been thanked: 1 time

Re: [RPG] Save/Load System

Post by haxorico »

To be honest. All you need is a save system that will use use some mathmatical equation (depending on the lvl of the hero, its name and his items.. Unless you want to load some more stuff ofc..)
If you badly want it short. You Propose making 3 (or more for any paramter, I think you ment only lvl, player name and items) that will be seperated by a "-" like XXXX-YYYY-ZZZZ - When X is the lvl code, Y is the name and Z is the items.

Long story short. When a player write "-save" the game will calculate the items he has. For example. If he has gloves of haste, the integer variable set on that type of code, will be increased by 1. etc..
And when a player write "-load" the game will do the same calculation backwards. etc..
Same for name and Level.. (items seems like the real problem tough as that will be kinda long..)
Image
Spoiler:
(02:24:09)

Code: Select all

ChatBot: FatherSpace logs into the Chat.
(02:24:28) Lanaya: Gtfo ken.
(02:24:33) ChatBot: FatherSpace logs out of the Chat.
(02:24:40) Lanaya: Thought so. bitch.
(02:24:44) ChatBot: FatherSpace logs into the Chat.
(02:24:48) FatherSpace: Can I come back yet?
(02:24:51) Lanaya: What'd i say earlier.
(02:24:51) Lanaya: No.
(02:24:58) FatherSpace: Let's try this...
(02:25:01) ChatBot: Lanaya has been logged out (Kicked).

Code: Select all


(14:33:51) 2Pac: Do you know what'S so funny?
(14:34:01) Lanaya: No, please show me.
(14:34:07) 2Pac: This.
(14:34:09) ChatBot: Lanaya has been logged out (Kicked).
(14:34:10) 2Pac: 

Code: Select all

(14:35:59) haxorico: No one will belive me if I say "I got this song from 2pac on MSN" lolz ^^
(14:36:02) Lanaya: lolz.
(14:36:16) 2Pac: I AIN'T DEAD FFS.
(14:36:26) 2Pac: I'm a living legend, y'now.
(14:37:17) haxorico: why is 2Pac a legend?
(14:37:28) Lanaya: He's the worse rapper evar.

Code: Select all

(15:42:51) Lanaya: can i suck , . . .

Code: Select all

(13:55:21) ChatBot: 2Pac rolls 1d100 and gets 1.
(13:55:21) ChatBot: haxorico rolls 1d2 and gets 2.
(13:55:27) haxorico: owned?

Code: Select all

GeorgeMots: xplain what happens in SP. Why cant you save?
dast.-:i need play with 2 players

Code: Select all

(21:53:08) (673237): plzplzplz, im sorry about before.
(21:53:26) FatherSpace: I'm sorry you were born.
(21:53:31) ChatBot: (673237) has been logged out (Kicked).

Code: Select all

(10:08:02) Bartimaeus: you do know run I youtube channel for my favorite music, right?
Kyoshiro
Forum Staff
Posts: 762
Joined: October 27th, 2009, 12:18 pm
Location: Australia, GMT+8

Re: [RPG] Save/Load System

Post by Kyoshiro »

haxorico wrote:To be honest. All you need is a save system that will use use some mathmatical equation (depending on the lvl of the hero, its name and his items.. Unless you want to load some more stuff ofc..)
If you badly want it short. You Propose making 3 (or more for any paramter, I think you ment only lvl, player name and items) that will be seperated by a "-" like XXXX-YYYY-ZZZZ - When X is the lvl code, Y is the name and Z is the items.

Long story short. When a player write "-save" the game will calculate the items he has. For example. If he has gloves of haste, the integer variable set on that type of code, will be increased by 1. etc..
And when a player write "-load" the game will do the same calculation backwards. etc..
Same for name and Level.. (items seems like the real problem tough as that will be kinda long..)
not to mention it'll probably be extremely easy to codegen
If you have any questions drop in by chat sometime, chances are there'll be someone who can help you that's afking there, so the next best thing is to click the link on UndeadxAssassin's Sig and ask your question there.
User avatar
haxorico
Super Moderator
Posts: 3195
Joined: February 24th, 2009, 1:31 pm
Location: JEW LAND
Been thanked: 1 time

Re: [RPG] Save/Load System

Post by haxorico »

Ofcouse, I am speaking from my code-gening expirience...
Yet if you want to make it simple. Hacking will make it simple.
Either way. Any map can be hacked so instead of a code-gen you could just enable SP, use -spawn X + -lvl X and have fun...
Image
Spoiler:
(02:24:09)

Code: Select all

ChatBot: FatherSpace logs into the Chat.
(02:24:28) Lanaya: Gtfo ken.
(02:24:33) ChatBot: FatherSpace logs out of the Chat.
(02:24:40) Lanaya: Thought so. bitch.
(02:24:44) ChatBot: FatherSpace logs into the Chat.
(02:24:48) FatherSpace: Can I come back yet?
(02:24:51) Lanaya: What'd i say earlier.
(02:24:51) Lanaya: No.
(02:24:58) FatherSpace: Let's try this...
(02:25:01) ChatBot: Lanaya has been logged out (Kicked).

Code: Select all


(14:33:51) 2Pac: Do you know what'S so funny?
(14:34:01) Lanaya: No, please show me.
(14:34:07) 2Pac: This.
(14:34:09) ChatBot: Lanaya has been logged out (Kicked).
(14:34:10) 2Pac: 

Code: Select all

(14:35:59) haxorico: No one will belive me if I say "I got this song from 2pac on MSN" lolz ^^
(14:36:02) Lanaya: lolz.
(14:36:16) 2Pac: I AIN'T DEAD FFS.
(14:36:26) 2Pac: I'm a living legend, y'now.
(14:37:17) haxorico: why is 2Pac a legend?
(14:37:28) Lanaya: He's the worse rapper evar.

Code: Select all

(15:42:51) Lanaya: can i suck , . . .

Code: Select all

(13:55:21) ChatBot: 2Pac rolls 1d100 and gets 1.
(13:55:21) ChatBot: haxorico rolls 1d2 and gets 2.
(13:55:27) haxorico: owned?

Code: Select all

GeorgeMots: xplain what happens in SP. Why cant you save?
dast.-:i need play with 2 players

Code: Select all

(21:53:08) (673237): plzplzplz, im sorry about before.
(21:53:26) FatherSpace: I'm sorry you were born.
(21:53:31) ChatBot: (673237) has been logged out (Kicked).

Code: Select all

(10:08:02) Bartimaeus: you do know run I youtube channel for my favorite music, right?