• 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 2
Joined
Dec 12, 2011
Messages
8
hi I makeing new ORPG, but I can't create a good save/load cod ! can someone help me I am geting pissed up cuse I got the data and terra and all :vw_sad:
 
Level 23
Joined
Apr 16, 2012
Messages
4,041
GUI generates jass code but you dont see it
  • Actions
    • Custom script: call DisplayTextToPlayer(Player(0), 0., 0., "AAA")
Generates:
JASS:
call DisplayTextToPlayer(Player(0), 0., 0., "AAA")
  • Actions
    • Unit - Create 1 Footman for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing degrees
generates:
JASS:
call CreateNUnitsAtLoc( 1, 'hfoo', Player(0), GetRectCenter(GetPlayableMapRect()), bj_UNIT_FACING )
you see this is red right? Its because its blizzards shitty jass called Jass2, this generates:
JASS:
    call GroupClear(bj_lastCreatedGroup)
    loop
        set count = count - 1
        exitwhen count < 0
        call CreateUnitAtLocSaveLast(Player(0), 'hfoo', GetRectCenter(GetPlayableMapRect()), bj_UNIT_FACING) //Player 1 is Player 0 in Jass
        call GroupAddUnit(bj_lastCreatedGroup, bj_lastCreatedUnit)
    endloop
    return bj_lastCreatedGroup
And red text again, this is changed to
JASS:
    if (unitid == 'ugol') then
        set bj_lastCreatedUnit = CreateBlightedGoldmine(id, GetLocationX(loc), GetLocationY(loc), face)
    else
        set bj_lastCreatedUnit = CreateUnitAtLoc(id, unitid, loc, face)
    endif

    return bj_lastCreatedUnit

Basically GUI is just a habitat for Jass, making it more easier for newcommers.
vJass is improved Jass made by Vexorian, bringing Object Orientated Programming to the Jass.

Also GUI is as you see quite slower then normal Jass but its not like your resource wont get approved.
 
Level 2
Joined
Dec 12, 2011
Messages
8
1 last thing, if someone can create for me the save/load syste (credit will be given ofc) it could relly helped. if you do please tell me here and thanx for help !
 
Status
Not open for further replies.
Top