Saving Problem

lummerlars

Member
Reaction score
2
Hi everyone. Im doing a Map with my friend. It's my job to make the Save/load System. I have made the Hero, level, gold and lumber save. But now i got a problem. I cant save my items. My question for you is:
How do i save my items. I realy appreciate if you can help me.

I give 1 rep. to the one who can help me.
 

jomik

New Member
Reaction score
17
Just get the ID of the item, and save it in a code? - encrypt it in some way ? :D

EDIT: Ohh, it's you dudes whos making the ORPG? :D doing it in JASS or GUI?
 

Weirdoze

New Member
Reaction score
6
Just get the ID of the item, and save it in a code? - encrypt it in some way ?

Sorry to say this, but that comment did not help very much. You just presented 2 more questions.
 

lummerlars

Member
Reaction score
2
Set TempItem = (Number of items carried by (Picked unit))
For each (Integer A) from 1 to 12, do (Actions)
Loop - Actions
If ((Item carried by PickedHero in slot (Integer A)) Equal to (Item carried by PickedHero of type ItemType[1])) then do (Set Code = (Code + ItemString[1])) else do (Do nothing)
If ((Item carried by PickedHero in slot (Integer A)) Equal to (Item carried by PickedHero of type ItemType[2])) then do (Set Code = (Code + ItemString[2])) else do (Do nothing)

I know that the ending Action is = Do nothing. That not the action it should be. But im totaly lost.
 

jomik

New Member
Reaction score
17
Sorry, I'll give ya a code that might work :D
Ahh, fucked, this'll be easier if you use JASS lol :p Otherwise you'll have to do as lummerlars said, even though you could give each item a custom value, and save that in the save code, then when they load, check for custom values.
 

lummerlars

Member
Reaction score
2
We're actually makeing a map. We are not Scripting :D.
We're trying to make this work, without useing jass.
But the problem with GUI is: that it's hard to do alot of thing on the same time, with the right effect..
 

Weirdoze

New Member
Reaction score
6
Hmm, and exatcly what for?
Let's say that it would take a month to learn JASS basics
then few months more to learn more advanced things like saving codes
and then i make epic-super-uber-cool-badass-JASSmaps for a year or two
and some day i wake up in the reality :O
There are actually no one who plays wc3 anymore
Damn I just wasted nearly 6 months of my life and I know JASS
What does it help in later life?
 

millz-

New Member
Reaction score
25
I would say there is 2 main ways of saving items. The first way is to save the item type id of an item. Another way is to store all items you have in your map to an array, then check the item carried by the hero is which item in that array, when you found the right item, save the index (which is also something like saving the custom value).

Of course there should be other ways but could be complicated, or maybe not, I don't know. Also, saving item type id will usually return a very long code if the hero has 6 items, so saving the "index" or "custom value" of an item would be more feasible.

Edit:
@Karri
Do you believe I started mapping only about 20 days ago? I admit I have learnt some sort of programming before, like Java and C++ so it's quite easy for me to catch up with JASS. :p
 

lummerlars

Member
Reaction score
2
I would say there is 2 main ways of saving items. The first way is to save the item type id of an item. Another way is to store all items you have in your map to an array, then check the item carried by the hero is which item in that array, when you found the right item, save the index (which is also something like saving the custom value).

Of course there should be other ways but could be complicated, or maybe not, I don't know. Also, saving item type id will usually return a very long code if the hero has 6 items, so saving the "index" or "custom value" of an item would be more feasible.

First of all. Im trying to make the second one: Saving all items to an array. And it worked nice. But the problem is when i have to save them, it's doing a separated save code.
1
1e
1ew
1ewD
1ewDT
1ewDTk Like that
Else it's not doing what i want it to do. Like doing only one of the Item codes.
So i dont know what to do, with it.
 

UndeadDragon

Super Moderator
Reaction score
447
ehh.. but as I understood Visual Basics is easier to learn, and it helps learn other programming languages 100 times better :D

Visual basic syntax is horrible compared to most languages.
 

Azlier

Old World Ghost
Reaction score
461
I took 3 days to learn Jass, 4 more to learn the vJass stuff like structs.

No previous programming experience. Saying it takes 6 months is pure exaggeration.
 

lummerlars

Member
Reaction score
2
This Thread was about a save/load system.
You aren't getting any rep+ just becouse your telling about jass:)
Please i need help.
 

Weirdoze

New Member
Reaction score
6
I took 3 days to learn Jass, 4 more to learn the vJass stuff like structs.

No previous programming experience. Saying it takes 6 months is pure exaggeration.

PLEASE, don't make me repeat myself, I said that I was wrong :S!
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    New recipe is another summer dessert Berry and Peach Cheesecake - https://www.thehelper.net/threads/recipe-berry-and-peach-cheesecake.194169/
  • The Helper The Helper:
    I think we need to add something to the bottom of the front page that shows the Headline News forum that has a link to go to the News Forum Index so people can see there is more news. Do you guys see what I am saying, lets say you read all the articles on the front page and you get to the end and it just ends, no kind of link for MOAR!
  • The Helper The Helper:
    Happy Wednesday!
    +1

      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