create a trade container for each player have option buttons appear off to the side somewhere one being initiate trade with selected player whenever you click on someone, click the initiate trade button have that button dissipate and the 2 players containers come up with a trade button. when the trade button is pressed add the items in container 1 to a unit group and items from container 2 to another unit group then destroy the items in the trade window and close the windows and hide the trade buttons. add each item in the unit group to their respective players and clear the unit group.
for some reason i cannot close the map - then re-open it and load data from the bank.
It seems to cache the data only and when you save it successfully saves to the Bank XML. but if you try and load information it looks like its reading from the cache and not the XML (i can only assume because the data is in the XML).
anyone have any idea how i can get this to be able to load a save after you have closed and re-opened the map?
i will be posting the code as a new map to DL this afternoon. It looks like banking information between maps as not been enabled because it flat out dose not work for heroes or items. I will be making updates to the map regularly to refine the system.
i will be posting the code as a new map to DL this afternoon. It looks like banking information between maps as not been enabled because it flat out dose not work for heroes or items. I will be making updates to the map regularly to refine the system.
The Key isn't Player 1 - Hero Name, it's -hero scmapper, so you need to fix that.
Also make sure to add a Map Initialization Trigger that preloads each bank for each player, otherwise you will hit a stump when playing multiplayer and doing bank saves and loads.
Player 1 - Hero name is a variable:
Player 1 - Hero Name = "" <String>
"Also make sure to add a Map Initialization Trigger that preloads each bank for each player, otherwise you will hit a stump when playing multiplayer and doing bank saves and loads."
damn if i were only on my desktop i would so take a look at this :( , if SC2 mapper doesn't get back too you ill look at it when this episode of house ends :P
its mostly all proof of concept stuff in triggers, i am having a very hard time with this though. its had me stumped all day.
also i wanted to elaborate on the problem more, If you save/load in the same map session it works fine. if you close the map and try and load it throws that error. Now when i open the bank XML the information is clearly there. this is my problem.
Keep Items Stored into a Item Array, Save the numbers of the items your character has as integer references to positions in that array, and then refer to the array with that integer to get the actual item. Banks store primitive data, not objects, so you need to be creative in how you use primitive types to get object data like items.
Then if your character has item 4, you store the integer 3 however you wish to do so, then when you load it, you can convert that back into the array to recieve item4;
Yeah, I'm just not sure how to trigger the adding of the items to the array. say if i make exampleItemArray[0] how would i trigger the item into it. I cannot find any triggers that deal with items. or do i just treat them as units?
0
@xandramas: Go
create a trade container for each player have option buttons appear off to the side somewhere one being initiate trade with selected player whenever you click on someone, click the initiate trade button have that button dissipate and the 2 players containers come up with a trade button. when the trade button is pressed add the items in container 1 to a unit group and items from container 2 to another unit group then destroy the items in the trade window and close the windows and hide the trade buttons. add each item in the unit group to their respective players and clear the unit group.
bam. trade.
0
@Pandaros_Brewmaster: Go
Fully functional Now can cross save!
0
http://www.sc2mapster.com/maps/saveload-system/
for some reason i cannot close the map - then re-open it and load data from the bank.
It seems to cache the data only and when you save it successfully saves to the Bank XML. but if you try and load information it looks like its reading from the cache and not the XML (i can only assume because the data is in the XML).
anyone have any idea how i can get this to be able to load a save after you have closed and re-opened the map?
0
I have finished the item save/load! more saves to come! The info is here!
http://www.sc2mapster.com/maps/saveload-system/
Added tons of functionality! just drag and drop! Added hero load screen
Any suggestions that i should add to the system lemmie know!
0
@Pandaros_Brewmaster: Go
GOOD NEWS! the save/load system is WORKING!
i will be posting the code as a new map to DL this afternoon. It looks like banking information between maps as not been enabled because it flat out dose not work for heroes or items. I will be making updates to the map regularly to refine the system.
@Pandaros_Brewmaster: Go
Updated top post!
0
@Pandaros_Brewmaster: Go
GOOD NEWS! the save/load system is WORKING!
i will be posting the code as a new map to DL this afternoon. It looks like banking information between maps as not been enabled because it flat out dose not work for heroes or items. I will be making updates to the map regularly to refine the system.
0
@Pandaros_Brewmaster: Go
HOLY COW! i got the items into the XML! one step closer to hero item save load! well the save part is done!
Check it out!
Returns in the bank:
0
@SCMapper: Go
yeah i cant seem to save string or text to it, i think it's bugged.
0
[reply=73381]
Oh found some stuff on the items this neat trigger:
I am going to see what i can do with this
0
@SCMapper: Go
Player 1 - Hero name is a variable:
Player 1 - Hero Name = "" <String>
"Also make sure to add a Map Initialization Trigger that preloads each bank for each player, otherwise you will hit a stump when playing multiplayer and doing bank saves and loads."
I think i already have this trigger
0
its mostly all proof of concept stuff in triggers, i am having a very hard time with this though. its had me stumped all day.
also i wanted to elaborate on the problem more, If you save/load in the same map session it works fine. if you close the map and try and load it throws that error. Now when i open the bank XML the information is clearly there. this is my problem.
0
Yeah, I'm just not sure how to trigger the adding of the items to the array. say if i make exampleItemArray[0] how would i trigger the item into it. I cannot find any triggers that deal with items. or do i just treat them as units?
0
@SCMapper: Go
Hey i am having a problem with my loading from the bank could you take a look if possible? it keeps giving me this:
00:01:31.63 Trigger Error in 'gt_Player1BankLoad_Func': Could not get 'bank' from parameter in '' (value: )
0
No one on this?
0
System is done!
http://www.sc2mapster.com/maps/saveload-system