Another question about twilights eve

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

User avatar
qweasd011
Forum Addict
Posts: 451
Joined: November 21st, 2008, 9:36 am
Title: Coleen!

Another question about twilights eve

Post by qweasd011 »

now thx to you i hacked my first RPG i enabled the single player and put cheats into it but i cannot -load and -load2 it doesn't let me use that command while im in single player now could you teach me how to remove that? so that i can use -load and -load2 while im in single player
Image
User avatar
Senethior459
Forum Staff
Posts: 2619
Joined: June 2nd, 2007, 6:53 pm
Title: I Just Lost the Game

Re: Another question about twilights eve

Post by Senethior459 »

Search for "-load"
When you find the trigger that checks if players type it, then see what function it is associated with/what function it's in
Search for DisableTrigger(function), replacing function with the name of the function you found in the last step (if the function you found is function Save, don't make it DisableTrigger(function Save), just DisableTrigger(Save) )
Delete the function/part of the function that you found above that disables the save trigger
Run syntax checker (if you delete the whole trigger, then it may still be called in function config or something, and syntax checker will tell you if those references exist)
Save
Put it back into the map
Compact(Flush)
My Warcraft III Tool Collection
If you want to chat/game with me:
Blizzard: Senethior459#1962
Discord: Kyle#7409
Steam: Spacekidkyle
User avatar
qweasd011
Forum Addict
Posts: 451
Joined: November 21st, 2008, 9:36 am
Title: Coleen!

Re: Another question about twilights eve

Post by qweasd011 »

so which is the function here?

Code: Select all

set an=CreateTrigger()
call TriggerRegisterPlayerChatEvent(an,Player(0),"-load ",false)
call TriggerRegisterPlayerChatEvent(an,Player(1),"-load ",false)
call TriggerRegisterPlayerChatEvent(an,Player(2),"-load ",false)
call TriggerRegisterPlayerChatEvent(an,Player(3),"-load ",false)
call TriggerRegisterPlayerChatEvent(an,Player(4),"-load ",false)
call TriggerRegisterPlayerChatEvent(an,Player(5),"-load ",false)
call TriggerRegisterPlayerChatEvent(an,Player(6),"-load ",false)
call TriggerRegisterPlayerChatEvent(an,Player(7),"-load ",false)
call TriggerRegisterPlayerChatEvent(an,Player(8),"-load ",false)
call TriggerRegisterPlayerChatEvent(an,Player(9),"-load ",false)
call TriggerAddCondition(an,Condition(function lN))
call TriggerAddAction(an,function qN)
set nn=CreateTrigger()
call TriggerRegisterPlayerChatEvent(nn,Player(0),"-load2 ",false)
call TriggerRegisterPlayerChatEvent(nn,Player(1),"-load2 ",false)
call TriggerRegisterPlayerChatEvent(nn,Player(2),"-load2 ",false)
call TriggerRegisterPlayerChatEvent(nn,Player(3),"-load2 ",false)
call TriggerRegisterPlayerChatEvent(nn,Player(4),"-load2 ",false)
call TriggerRegisterPlayerChatEvent(nn,Player(5),"-load2 ",false)
call TriggerRegisterPlayerChatEvent(nn,Player(6),"-load2 ",false)
call TriggerRegisterPlayerChatEvent(nn,Player(7),"-load2 ",false)
call TriggerRegisterPlayerChatEvent(nn,Player(8),"-load2 ",false)
call TriggerRegisterPlayerChatEvent(nn,Player(9),"-load2 ",false)
call TriggerAddCondition(nn,Condition(function sN))
call TriggerAddAction(nn,function ZN)

thats all the code -load and -load2
Image
User avatar
Bl00D R3av3r
Senior Member
Posts: 165
Joined: January 25th, 2008, 5:20 pm
Title: Lazy

Re: Another question about twilights eve

Post by Bl00D R3av3r »

you enabled singleplayer right? look in the trigger which disables singleplayer(with whatever eg. defeat) and look if there's something like
Senethior459 wrote:DisableTrigger

just delete this line or change it to
call DoNothing()

edit: here's the jass script of the newest version(singleplayer enabled by me) and saving works fine
You do not have the required permissions to view the files attached to this post.
Last edited by Bl00D R3av3r on May 13th, 2009, 1:07 pm, edited 1 time in total.
Image
Sig by TheWand
User avatar
qweasd011
Forum Addict
Posts: 451
Joined: November 21st, 2008, 9:36 am
Title: Coleen!

Re: Another question about twilights eve

Post by qweasd011 »

yes i enabled single player but it not enables -load -load2 it will only work if there were 2 players
Image
User avatar
Bl00D R3av3r
Senior Member
Posts: 165
Joined: January 25th, 2008, 5:20 pm
Title: Lazy

Re: Another question about twilights eve

Post by Bl00D R3av3r »

ok i'm trying^^

edit: seems like it's not working but it could be my failure(maybe i missspelled my code -.-)
i think you should try it and btw i can't find anything that prevents you from loading so just try it i did my best
Image
Sig by TheWand
User avatar
Senethior459
Forum Staff
Posts: 2619
Joined: June 2nd, 2007, 6:53 pm
Title: I Just Lost the Game

Re: Another question about twilights eve

Post by Senethior459 »

qweasd, look at the code.
For the -load part, it has this under it:
call TriggerAddCondition(an,Condition(function lN))
call TriggerAddAction(an,function qN)
So, function qN is the main function; that's the one that actually encodes the data and gives you the save code. But it only does it if function IN says yes, so you should look at IN. Sometimes, it will be an anti-singleplayer or will call and anti-singleplayer function. If it does, then remove that part of it. Either way, then look for DisableTrigger(qN)
And for -load2, look at sN and search for DisableTrigger(ZN).
My Warcraft III Tool Collection
If you want to chat/game with me:
Blizzard: Senethior459#1962
Discord: Kyle#7409
Steam: Spacekidkyle