PoLlama Forums  

Go Back   PoLlama Forums > WarCraft > Resources > Spells and Systems

Reply
 
LinkBack Thread Tools Rate Thread
Old 08-31-2007   #1
 
MrApples's Avatar
 
Join Date: Sep 2006
Location: Your Mom
Posts: 2,241
MrApples has a spectacular aura about
Apple's Save / Load is released.

THERE APPEARS TO BE SOMETHING WRONG WITH THE COMPRESSOR. EVERY SAVE HAS ONE EXTRA BINARY ADDED ON.



Many months ago, I decided that none of the available Save/Loads were any good to me. So, I set out to make my own. 3 completely failed attempts later and at least 30 hours wasted, I present to you, Apple’s Save/Load!

This Save Load is designed to apply to any mapper. It’s fast, easy to use, and uses the absolutely least space possible – guaranteed. Honestly I can only hope to make it a total of 2% more efficient in the future.

Changelog
Code:
Version B1b
- Fixed a small bug where overwrite would not work for different min/maxes.
- Added a save/load hero example. (Check it out!)
- Changes the default setting for Overload.
- Improved the documentation a bit

Version B1 - Release
What is a ‘Save / Load’?
A Save/Load takes data and compresses/encrypts it into a much smaller code, which can be used to recreate, or load the same data.

You see them commonly in RPGs, to save and load heroes, but they can also be used to track ‘player profiles, or even give the map creator feedback on balance and other statistics in-game.

How do I use this Save / Load?
Both JASSers and Non-JASSers can easily use ASL(Apple’s Save / Load). See the information on-map.

NOTE: You do not need to know JASS. Non-Jass examples are given.


How do I install ASL on my map?
  • Click on the trigger menu where it says Apples SaveLoad B1.w3x at the very top. You will find the custom script section.
    • > Right Click - Select All
    • > Right Click - Copy
    • > Open your map.
    • > Go to the Custom Script section.
    • > Right Click - Paste
    • > Go back to Apples SaveLoad, you may use the Window tab for this.
  • Now go to File (on worldedit, main window), scroll down to Preferences..., and check "Automatically create unknown variables while pasting trigger data".
  • Go back to the trigger menu.
    • > Select the folder "Copy These Over"
    • > Right Click - Copy
    • > Open your map.
    • > Go to the Trigger section.
    • > Select any folder.
    • > Right Click – Paste
    • > Delete the "Variables" trigger
  • Go to your Initialization trigger. If one does not exist, create a trigger with the "Map initialization" event.
    • > Go to Actions.
    • > Add New Action - Custom Script
    • > In the Custom Script field, put " call ASLinit()".
    • > It should look like below
    • > Custom script: call ASLinit()
    • > Save the map.


FAQ
  • There’s many other save/loads out there, why use yours?
    I created ASL because I didn’t like the other save/loads. Whether or not it’s the best for you, is your decision. Feel free to try it out(a test is setup on the map), or ask others who have tried it. But if a fast, easy-to-use, save / load that compresses the values into the smallest code possible is not what your looking for, maybe you should stop now .

  • This FAQ is incomplete; please help us finish it by asking questions.

CAUTION: This is a beta! Use at your own risk!.

====
I know this needs a lot more documentation, but I want to see how people react first, good night!

Attached Thumbnails
asl1.png-asl1.png  asl2.png-asl2.png  asl3.png-asl3.png  

Attached Files
File Type: w3x Apples SaveLoad B1b.w3x (53.4 KB, 91 views)
File Type: png_thumb asl1.PNG_thumb (132.0 KB, 22 views)
File Type: png_thumb asl2.PNG_thumb (122.4 KB, 19 views)
File Type: png_thumb asl3.PNG_thumb (138.2 KB, 19 views)

Last edited by Mr. Zero; 06-24-2008 at 12:30 PM.
MrApples is offline   Reply With Quote
Old 08-31-2007   #2
 
Join Date: Jul 2007
Posts: 13
Talus_MaGeWyRm is an unknown quantity at this point
Re: Apple's Save / Load is released.

So can you actually tell us what INFORMATION IS saved? Because over at WoA the community is making an RPG with save/load functions and i'd be open to hear what your save/load code has to offer. Of course, this is all the good ol comparison shopping
Talus_MaGeWyRm is offline   Reply With Quote
Old 08-31-2007   #3
 
MrApples's Avatar
 
Join Date: Sep 2006
Location: Your Mom
Posts: 2,241
MrApples has a spectacular aura about
Re: Apple's Save / Load is released.

It can save anything you want it to.

The 3 save functions there are right now are SaveInteger, SaveReal, and SaveBoolean. And theres also a security function for Name Check.

I will add more functions such as SaveItem, SaveUnit, SavePoint, SaveHero, but I have to build up to that point. All these would do anyway is be using the 3 basic ones already there.

If you wanted to save a hero's level, and say the hero's level goes up to 100, you would use...
Code:
set IntegerVariable = (Hero's Level)
call SaveInteger( udg_IntegerVariable, "level", 1, 100, "hero")
1 is the minimum value
100 is the maximum value
level is the name of the save
hero is the name of the code your saving to.

Full Non-JASS examples are on the map[br]Posted on: August 31, 2007, 12:10:28 PM_________________________________________________U ploaded new version.
MrApples is offline   Reply With Quote
Old 08-31-2007   #4
 
Titan's Avatar
 
Join Date: Sep 2006
Location: Seven blocks down from your drug dealer
Posts: 2,672
Titan has a reputation beyond reputeTitan has a reputation beyond reputeTitan has a reputation beyond reputeTitan has a reputation beyond reputeTitan has a reputation beyond reputeTitan has a reputation beyond reputeTitan has a reputation beyond reputeTitan has a reputation beyond reputeTitan has a reputation beyond reputeTitan has a reputation beyond reputeTitan has a reputation beyond repute
Re: Apple's Save / Load is released.

Untill he updates it, you also need to add the following variables (he forogot)
SL_OverHit
SL_Overload
SL_Load
all of them are to be integers

[Only registered and activated users can see links. ]




Titan is offline   Reply With Quote
Old 09-05-2007   #5
 
Kuramawhip's Avatar
 
Join Date: Jul 2007
Location: Heaven
Posts: 233
Kuramawhip is on a distinguished road
Re: Apple's Save / Load is released.

I just tested it out in your map, with a level 100 hero. I save and load it EXACTLY, and it comes out with a level 32 (I think it was) hero. -.- Everything else seemed to work fine.

Although I suggest that you change the "Game-Display Message to All Players" to "Game-Display Message to (Player Group((Triggering Player)))"

This way, even though there's name protection, other people can't see the code.

Awesome system, btw, Apple, nice job!

Help out Phase Killer Ville! Increase PK Ville's...
[x][Only registered and activated users can see links. ]
[x]Industry
[x]Transportation
[x]Security
[x]Environment
[x]Business
Kuramawhip is offline   Reply With Quote
Old 09-05-2007   #6
 
MrApples's Avatar
 
Join Date: Sep 2006
Location: Your Mom
Posts: 2,241
MrApples has a spectacular aura about
Re: Apple's Save / Load is released.

You probaly mistyped it. I think I'm going to make a floating text display so I can change font size.

For the message, thats on the users end, not mine. The system just makes the code.

I'm still trying to fix the compressor... It doesn't work properly for booleans and numbers on powers.
MrApples is offline   Reply With Quote
Old 09-06-2007   #7
 
Kuramawhip's Avatar
 
Join Date: Jul 2007
Location: Heaven
Posts: 233
Kuramawhip is on a distinguished road
Re: Apple's Save / Load is released.

Actually, I typed it EXACTLY, and tried it a second time to make sure I did. Both came out with a level 32 Blood Mage. o.o (I used Blood Mage.)

True. I get what you're going for.

Help out Phase Killer Ville! Increase PK Ville's...
[x][Only registered and activated users can see links. ]
[x]Industry
[x]Transportation
[x]Security
[x]Environment
[x]Business
Kuramawhip is offline   Reply With Quote
Old 02-14-2008   #8
 
Join Date: Feb 2008
Posts: 5
AgentRonin316 is an unknown quantity at this point
Re: Apple's Save / Load is released.

My roommate and I have recently been playing "The Imagica RPG v3.8" ([Only registered and activated users can see links. ])and after we got about halfway through the map the WC3 save file wouldn't load anymore. The creator (Taz) has made the map open for modification, as this is his final version, so I tried to load in ASL so we could at least keep our heros in the future, but the modified version of the map won't load up. I tried re-adding ASL and I'm getting about 12 or so error messages when I save the map. (At least I'm saving the changes in a different file.) Any ideas?
AgentRonin316 is offline   Reply With Quote
Old 03-15-2008   #9
 
Titan's Avatar
 
Join Date: Sep 2006
Location: Seven blocks down from your drug dealer
Posts: 2,672
Titan has a reputation beyond reputeTitan has a reputation beyond reputeTitan has a reputation beyond reputeTitan has a reputation beyond reputeTitan has a reputation beyond reputeTitan has a reputation beyond reputeTitan has a reputation beyond reputeTitan has a reputation beyond reputeTitan has a reputation beyond reputeTitan has a reputation beyond reputeTitan has a reputation beyond repute
Re: Apple's Save / Load is released.

post the error you get.

[Only registered and activated users can see links. ]




Titan is offline   Reply With Quote
Old 06-23-2008   #10
 
Join Date: Jun 2008
Posts: 33
Phoenix is on a distinguished road
Re: Apple's Save / Load is released.

am i doing somethinhg wrong? i clicked the download button and it just sent me to the main news page? no download there?

ideas? id love to test this
Phoenix is offline   Reply With Quote
Old 06-24-2008   #11
 
Titan's Avatar
 
Join Date: Sep 2006
Location: Seven blocks down from your drug dealer
Posts: 2,672
Titan has a reputation beyond reputeTitan has a reputation beyond reputeTitan has a reputation beyond reputeTitan has a reputation beyond reputeTitan has a reputation beyond reputeTitan has a reputation beyond reputeTitan has a reputation beyond reputeTitan has a reputation beyond reputeTitan has a reputation beyond reputeTitan has a reputation beyond reputeTitan has a reputation beyond repute
Re: Apple's Save / Load is released.

That doesn't happen to me, make sure you are clicking Apples SaveLoad B1b file under the first post.

[Only registered and activated users can see links. ]




Titan is offline   Reply With Quote
Reply

Tags
None

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may post replies
You may post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Save & Load system in 8.7.9 Psymayn Final Fantasy Epic RPG 11 05-27-2008 10:23 PM
Confirm Bug Loading Bug - Old Load Works But then New Save Code generated doesn't work (w/pics) AdverseRandomX Bug Report Board 2 03-26-2008 03:48 AM
MOVED: Apple's Save / Load is released. MrApples Anouncements 0 08-31-2007 10:18 PM
A draft of mine (spam) MrApples Po-Talk 2 08-22-2007 06:17 PM


All times are GMT -5. The time now is 03:54 AM.

A friend of Wc3Happy
Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165