• 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.
  • 💡 We're thrilled to announce that our upcoming texturing contest is in the works, and we're eager to hear your suggestions! Please take this opportunity to share your ideas in this theme discussion thread for the Texturing Contest #34!
  • 🏆 Hive's 7th HD Modeling Contest: Icecrown Creature is now open! The frozen wastes of Icecrown are home to some of Azeroth’s most terrifying and resilient creatures. For this contest, your challenge is to design and model a HD 3D monster that embodies the cold, undead, and sinister essence of Icecrown! 📅 Submissions close on April 13, 2025. Don't miss this opportunity to let your creativity shine! Enter now and show us your frozen masterpiece! 🔗 Click here to enter!

save load problem

Status
Not open for further replies.

Ardenian

A

Ardenian

If you have problems with storing all this data, split heroes or other data and create different codes, like a Heroes code and an item code.
If you put all data into one, it is probably too long for the chat log.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,275
128 letters is how many you can type into the chat bar I am pretty sure.... If you need larger then that then consider optimizing certain values or like Ardenian said... Multiple save/load codes.
Actually I recall it being dependant on the length of the player name who is chatting. I remember encountering problems where people could not enter codes due to long spoofed names.

tq, but when i try it, it only can save 1 hero only :|
I am sure it can save more if you use it to save more. Save/load systems should provide an API to store and recall integers. How many and the meaning of these integers is up to you and usually orientated around the map mechanics.

Do be reasonable when choosing what you want to store. People hate long codes, especially if they have to write them down (local files disabled) so the shorter the better. Storing level, items and hero type are reasonable. Storing position, current health/mana and what temporary summons you have active is not reasonable.
 
Status
Not open for further replies.
Top