• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Save/Load System

Status
Not open for further replies.
Level 28
Joined
Jan 26, 2007
Messages
4,789
Hi, I'm currently creating a map (Doomraiders ORPG) and I have tried 3 different Save/Load systems, but none of them worked, though I had installed them correctly.
Someone else already checked the save-code, but couldn't find anything that wasn't right.

Now I need a complete new save/load-code, or someone who can fix the code.
You can find all information on the map here Doomraiders ORPG

As you can read, I've been thinking about making it a single player RPG...

Thanks.
 
Level 28
Joined
Jan 26, 2007
Messages
4,789
Level 9
Joined
Jul 3, 2008
Messages
495
One thing many people do wrong when they request a save/load system, is that they dont tell what the system shall save.

Its kinda like requesting a model with animations, but wich animations?

Shall it save:?

Attributes?
XP?
Level?
Abilities?
Item?
Gold?
Lumber?
 
Level 28
Joined
Jan 26, 2007
Messages
4,789
did you jut try the link i gave you ?!?!?!?

Yes I've tried the system a few months ago... it didn't work back then.

I need to save these things:
- Gold
- Lumber
- Hero Level/class
- Abilities + Level
- Items (at least 10)
- Attributes
- A variable integer would be nice
- I prefer colored codes, so you will recognize 0 / O and 1 / l

At the moment I can't think of more stuff, so I guess that's all.
 
Level 9
Joined
Jul 3, 2008
Messages
495
Okay now its a easyer to understand what save/load system you want. But you may also thing about the lenght of the code.

Lets say the maximum number of:
Wood 99999 = 5 digits
Gold 99999 = 5 digits
Item 99 = 2 x 6 = 12 digits
Strenght 99 = 2 digits
Agility 99 = 2 digits
Intelligence 99 = 2 digits
Abilities 99 = 2 x 4 = 8 digits
Abilities Level 99 = 2 x 4 = 8 digits
Hero Level 99 = 2 digits
Class 9 = 1 digits
Then the code will be 5+5+12+2+2+2+8+8+2+1= 47 digits long
It will look like this:
ABCDEFGHIJabcdefghij01234567899876543210ABCDEFGHIJ0123456

Way to long I thik.
 
Level 28
Joined
Jan 26, 2007
Messages
4,789
Okay now its a easyer to understand what save/load system you want. But you may also thing about the lenght of the code.

Lets say the maximum number of:
Wood 99999 = 5 digits
Gold 99999 = 5 digits
Item 99 = 2 x 6 = 12 digits
Strenght 99 = 2 digits
Agility 99 = 2 digits
Intelligence 99 = 2 digits
Abilities 99 = 2 x 4 = 8 digits
Abilities Level 99 = 2 x 4 = 8 digits
Hero Level 99 = 2 digits
Class 9 = 1 digits

Then the code will be 5+5+12+2+2+2+8+8+2+1= 47 digits long
It will look like this:
ABCDEFGHIJabcdefghij01234567899876543210ABCDEFGHIJ0123456

Way to long I thik.

Well, these is what I want to do (to make sure it isn't too long):

- 9999 Gold
Gold / 100 = Gold (that way you can save 100 times more gold with the same amount of bits, but it is rounded up to the nearest 100)
- Max lumber = 999 (it's going to be very hard to get lumber in my map, so 999 lumber is very, very high.
- Well... saving 12 items is good enough, I don't need to save more items (6 is the minimum ofc).
And to make it easier to put items in the code, you create a trigger that takes every item in a region, saves it as a variable, deleted it and does that action untill there are no items left (If you don't know what I mean, I'll copy to trigger)
- Attributes should be 999... can't help it
- 9 Abilities
- 99 Ability levels
- Hero level should be 999...
- class is also 9.

So that decreases the amount of bits I guess...

MistAssass said:
Hey you forgot the position of the unit ... btw i tryed the spell pack on that link and work perfectly ... and it has instructions how to import it on your map !
No, The hero loads at the same spot where you start... the position doesn't need to be saved.

I'll try it once again, it was a few months ago... I guess I've learned something about WWE in the meanwhile.
 
Level 9
Joined
Jul 20, 2005
Messages
414
I'm assuming you don't quite understand how these "Save/load" codes work.

Of course there aren't 12 item slots, but each item must have an ID.
So, let's say Claws of Attack is item number 43, and Ring of Protection is 21.

So your code scrambles it to be 4132. Good, now it's scrambled and has to reread it (loading) as a substring.
Notice though, saving those two items takes 4 bits, not 2. And that's just assuming you have 99 items in your map.

9 abilities total in your map?? That's not much.. : /
Unless you mean that per unit...If so, then it's 18 bits per unit for abilities. That, again, is assuming that there are only 99 abilities in your game. That would also add 18 for levels, because it's 2 digits for your ability level times 9 abilities.

And I probably shouldn't mention this either, but with that lineup at 47 characters (even higher now), it doesn't cover specific usernames! So that way, MeKC could save his code, give it to me, and I can load it on my B.Net account.
 
Status
Not open for further replies.
Top