wc3edit.net

United Warcraft 3 map hacking!
It is currently April 28th, 2024, 8:59 am

All times are UTC




Post new topic Reply to topic  [ 14 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Request help with SP
PostPosted: October 20th, 2009, 3:43 am 
Offline
Newcomer

Joined: December 24th, 2007, 10:09 pm
Posts: 22
Alright i tried multiple ways to get around his single player but its highly gaurded in a maze of if statements with a few variables all refering to it and i could use someone more experienced to tell me how they would do it...

the text i recieve in warcraft is the general save codes disabled in singleplayer...
ill attach my J file to find the section i mean i just did a search for "single player" which took me to the displayed text when the trigger isnt active..

i realize this explanation sucks but thats do to frustration and confusion just looking at this thing
but i think the problem is its not the normal if then statement that if its single played disable blah blah its more like if single player activate trigger(XX) well i tried going around that and i even changed where he declared the single player variables so that it would never even matter but it seems that after it checks for single player there is something like if not single player activate (XX) and it turns on but i cant find this trigger anywhere and there are like 40000 lines not exagerating


i am attaching my j file that only has cheatpacks enabled so its a fresh start for anyone who takes this on thank you in advance for any input


You do not have the required permissions to view the files attached to this post.


Top
 Profile  
 
 Post subject: Re: Request help with SP
PostPosted: October 20th, 2009, 7:30 am 
Offline
Senior Member

Joined: October 5th, 2009, 7:31 am
Posts: 184
Location: Here!? XD
Title: Taiwan, Singapore
The save system is a 'liar' . You will not get a code by type '-save' even tho you did ENABLED it!

Well, kinda hard to explain. But assume that the .j file does not have a 'Generate Code System'.

Don't sure about load.


Top
 Profile  
 
 Post subject: Re: Request help with SP
PostPosted: October 20th, 2009, 8:30 am 
Offline
Super Moderator
User avatar

Joined: February 24th, 2009, 1:31 pm
Posts: 3815
Location: JEW LAND
Code:
set bj_isSinglePlayer=false
set kq=0
set Jq=0
loop
exitwhen Jq>=12
if(GetPlayerController(Player(Jq))==MAP_CONTROL_USER and GetPlayerSlotState(Player(Jq))==PLAYER_SLOT_STATE_PLAYING)then
set kq=kq+1
endif
set Jq=Jq+1
endloop
set bj_isSinglePlayer=(kq==1)

in this cases, i use 1 of few options... basicly u just need the local veriable kp to be over 1. so it will think ur not alone. so

change this
Code:
set kq=0

to
Code:
set kq=5 //it can be any other number.. just higher then 0..


or change this line
Code:
set kq=kq+1

to
Code:
set kq=kq+5//it can be any other number. just higher then 1..


or
Code:
set bj_isSinglePlayer=(kq==1)

to
Code:
set bj_isSinglePlayer=(kq==0)


or just delete all those lines i said on the top of the reply..

_________________
Image
Spoiler:
(02:24:09)
Code:
ChatBot: FatherSpace logs into the Chat.
(02:24:28) Lanaya: Gtfo ken.
(02:24:33) ChatBot: FatherSpace logs out of the Chat.
(02:24:40) Lanaya: Thought so. bitch.
(02:24:44) ChatBot: FatherSpace logs into the Chat.
(02:24:48) FatherSpace: Can I come back yet?
(02:24:51) Lanaya: What'd i say earlier.
(02:24:51) Lanaya: No.
(02:24:58) FatherSpace: Let's try this...
(02:25:01) ChatBot: Lanaya has been logged out (Kicked).
Code:

(14:33:51) 2Pac: Do you know what'S so funny?
(14:34:01) Lanaya: No, please show me.
(14:34:07) 2Pac: This.
(14:34:09) ChatBot: Lanaya has been logged out (Kicked).
(14:34:10) 2Pac:


Code:
(14:35:59) haxorico: No one will belive me if I say "I got this song from 2pac on MSN" lolz ^^
(14:36:02) Lanaya: lolz.
(14:36:16) 2Pac: I AIN'T DEAD FFS.
(14:36:26) 2Pac: I'm a living legend, y'now.
(14:37:17) haxorico: why is 2Pac a legend?
(14:37:28) Lanaya: He's the worse rapper evar.

Code:
(15:42:51) Lanaya: can i suck , . . .

Code:
(13:55:21) ChatBot: 2Pac rolls 1d100 and gets 1.
(13:55:21) ChatBot: haxorico rolls 1d2 and gets 2.
(13:55:27) haxorico: owned?

Code:
GeorgeMots: xplain what happens in SP. Why cant you save?
dast.-:i need play with 2 players

Code:
(21:53:08) (673237): plzplzplz, im sorry about before.
(21:53:26) FatherSpace: I'm sorry you were born.
(21:53:31) ChatBot: (673237) has been logged out (Kicked).


Code:
(10:08:02) Bartimaeus: you do know run I youtube channel for my favorite music, right?


Last edited by haxorico on October 21st, 2009, 12:36 am, edited 5 times in total.

Top
 Profile  
 
 Post subject: Re: Request help with SP
PostPosted: October 20th, 2009, 9:38 am 
Offline
Senior Member

Joined: October 5th, 2009, 7:31 am
Posts: 184
Location: Here!? XD
Title: Taiwan, Singapore
._. , that does not matter, i think.

Try search for -save, and than search the action of -save. You'll find out that does not a 'Code Generate System'.


Top
 Profile  
 
 Post subject: Re: Request help with SP
PostPosted: October 20th, 2009, 9:42 am 
Offline
Super Moderator
User avatar

Joined: February 24th, 2009, 1:31 pm
Posts: 3815
Location: JEW LAND
[=ryCgg=] wrote:
._. , that does not matter, i think.

Try search for -save, and than search the action of -save. You'll find out that does not a 'Code Generate System'.


all the stuff it does when in SP doesnt matter. as the game doesnt think he is playing on SP.
so instead of searching for stuff that happen in SP. i just told him how to make the game think he isnt on SP. simple..

_________________
Image
Spoiler:
(02:24:09)
Code:
ChatBot: FatherSpace logs into the Chat.
(02:24:28) Lanaya: Gtfo ken.
(02:24:33) ChatBot: FatherSpace logs out of the Chat.
(02:24:40) Lanaya: Thought so. bitch.
(02:24:44) ChatBot: FatherSpace logs into the Chat.
(02:24:48) FatherSpace: Can I come back yet?
(02:24:51) Lanaya: What'd i say earlier.
(02:24:51) Lanaya: No.
(02:24:58) FatherSpace: Let's try this...
(02:25:01) ChatBot: Lanaya has been logged out (Kicked).
Code:

(14:33:51) 2Pac: Do you know what'S so funny?
(14:34:01) Lanaya: No, please show me.
(14:34:07) 2Pac: This.
(14:34:09) ChatBot: Lanaya has been logged out (Kicked).
(14:34:10) 2Pac:


Code:
(14:35:59) haxorico: No one will belive me if I say "I got this song from 2pac on MSN" lolz ^^
(14:36:02) Lanaya: lolz.
(14:36:16) 2Pac: I AIN'T DEAD FFS.
(14:36:26) 2Pac: I'm a living legend, y'now.
(14:37:17) haxorico: why is 2Pac a legend?
(14:37:28) Lanaya: He's the worse rapper evar.

Code:
(15:42:51) Lanaya: can i suck , . . .

Code:
(13:55:21) ChatBot: 2Pac rolls 1d100 and gets 1.
(13:55:21) ChatBot: haxorico rolls 1d2 and gets 2.
(13:55:27) haxorico: owned?

Code:
GeorgeMots: xplain what happens in SP. Why cant you save?
dast.-:i need play with 2 players

Code:
(21:53:08) (673237): plzplzplz, im sorry about before.
(21:53:26) FatherSpace: I'm sorry you were born.
(21:53:31) ChatBot: (673237) has been logged out (Kicked).


Code:
(10:08:02) Bartimaeus: you do know run I youtube channel for my favorite music, right?


Top
 Profile  
 
 Post subject: Re: Request help with SP
PostPosted: October 20th, 2009, 4:36 pm 
Offline
Newcomer

Joined: December 24th, 2007, 10:09 pm
Posts: 22
haxorico i had that theory to... i declared kp to 5 when it was declared because further down there is a statement kp must be grester or equal to 2 but that didnt work i even changed the statement where kp needed to be and i made it needs to be greater than 0 no dice on ether attempt... im gonna upload the map so that u guys can try ur theorys i shoulda done this earlier i apologize...


You do not have the required permissions to view the files attached to this post.


Top
 Profile  
 
 Post subject: Re: Request help with SP
PostPosted: October 20th, 2009, 4:46 pm 
Offline
Super Moderator
User avatar

Joined: February 24th, 2009, 1:31 pm
Posts: 3815
Location: JEW LAND
i didnt look at the map as i still have the war3map.j
dont know if its important or not.. maybe its not the same map...

but if u had a diffrent veriable called "kp" it wont rly matter.
i say u just need to use the CTRL+F.
look for bj_isSinglePlayer
then ull find the commands i posted. and just delete...

if u have any trouble.. i think i will be able to help u better at the chat.

chat.wc3edit.net

_________________
Image
Spoiler:
(02:24:09)
Code:
ChatBot: FatherSpace logs into the Chat.
(02:24:28) Lanaya: Gtfo ken.
(02:24:33) ChatBot: FatherSpace logs out of the Chat.
(02:24:40) Lanaya: Thought so. bitch.
(02:24:44) ChatBot: FatherSpace logs into the Chat.
(02:24:48) FatherSpace: Can I come back yet?
(02:24:51) Lanaya: What'd i say earlier.
(02:24:51) Lanaya: No.
(02:24:58) FatherSpace: Let's try this...
(02:25:01) ChatBot: Lanaya has been logged out (Kicked).
Code:

(14:33:51) 2Pac: Do you know what'S so funny?
(14:34:01) Lanaya: No, please show me.
(14:34:07) 2Pac: This.
(14:34:09) ChatBot: Lanaya has been logged out (Kicked).
(14:34:10) 2Pac:


Code:
(14:35:59) haxorico: No one will belive me if I say "I got this song from 2pac on MSN" lolz ^^
(14:36:02) Lanaya: lolz.
(14:36:16) 2Pac: I AIN'T DEAD FFS.
(14:36:26) 2Pac: I'm a living legend, y'now.
(14:37:17) haxorico: why is 2Pac a legend?
(14:37:28) Lanaya: He's the worse rapper evar.

Code:
(15:42:51) Lanaya: can i suck , . . .

Code:
(13:55:21) ChatBot: 2Pac rolls 1d100 and gets 1.
(13:55:21) ChatBot: haxorico rolls 1d2 and gets 2.
(13:55:27) haxorico: owned?

Code:
GeorgeMots: xplain what happens in SP. Why cant you save?
dast.-:i need play with 2 players

Code:
(21:53:08) (673237): plzplzplz, im sorry about before.
(21:53:26) FatherSpace: I'm sorry you were born.
(21:53:31) ChatBot: (673237) has been logged out (Kicked).


Code:
(10:08:02) Bartimaeus: you do know run I youtube channel for my favorite music, right?


Top
 Profile  
 
 Post subject: Re: Request help with SP
PostPosted: October 20th, 2009, 5:23 pm 
Offline
Newcomer

Joined: December 24th, 2007, 10:09 pm
Posts: 22
ya but what im saying is i dont think deleting it will work because if it doesnt pass this check the save will never be called so deleting it will just make there be no save single or multiplayer

*edit*
tried deleting the triggers out and it makes the map incompatible


Top
 Profile  
 
 Post subject: Re: Request help with SP
PostPosted: October 20th, 2009, 8:48 pm 
Offline
Forum Staff
User avatar

Joined: June 2nd, 2007, 6:53 pm
Posts: 2732
Title: I Just Lost the Game
Well, if you search for -save
you'll find this:
Spoiler:
Code:
set Hf=CreateTrigger()
call TriggerRegisterPlayerChatEvent(Hf,Player(0),"-save",true)
call TriggerRegisterPlayerChatEvent(Hf,Player(1),"-save",true)
call TriggerRegisterPlayerChatEvent(Hf,Player(2),"-save",true)
call TriggerRegisterPlayerChatEvent(Hf,Player(3),"-save",true)
call TriggerRegisterPlayerChatEvent(Hf,Player(4),"-save",true)
call TriggerRegisterPlayerChatEvent(Hf,Player(5),"-save",true)
call TriggerRegisterPlayerChatEvent(Hf,Player(6),"-save",true)
call TriggerRegisterPlayerChatEvent(Hf,Player(7),"-save",true)
call TriggerRegisterPlayerChatEvent(Hf,Player(8),"-save",true)
call TriggerAddAction(Hf,function CW)


Notice it adds function CW to the trigger at the bottom. When you search for function CW, you'll find this:
Spoiler:
Code:
function CW takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
if(AW())then
call DisplayTimedTextToForce(Iq(GetTriggerPlayer()),6.,"Generation of character save codes disabled in single player games.")
call EnableTrigger(Hf)
return
endif
set O=null
set O=D[(1+GetPlayerId(GetTriggerPlayer()))]
set Vr=GetTriggerPlayer()
if(cW())then
call DisplayTimedTextToForce(Iq(GetTriggerPlayer()),6.,"You do not have a hero character to save.")
call EnableTrigger(Hf)
return
else
if(bW())then
call DisplayTimedTextToForce(Iq(GetTriggerPlayer()),6.,"You must exit the Plane of Fear to be able to save.")
call EnableTrigger(Hf)
return
endif
if(BW())then
call DisplayTimedTextToForce(Iq(GetTriggerPlayer()),3.,"|c00ff8000You cannot save while mentoring, please unmentor first.|r")
call EnableTrigger(Hf)
return
endif
call TriggerExecute(gf)
call EnableTrigger(Hf)
endif
endfunction

You'll be able to save if you remove this chunk (don't replace with call DoNothing(), remove this entire snippet):
Code:
if(AW())then
call DisplayTimedTextToForce(Iq(GetTriggerPlayer()),6.,"Generation of character save codes disabled in single player games.")
call EnableTrigger(Hf)
return
endif

So that function CW now looks like this:
Spoiler:
Code:
function CW takes nothing returns nothing

call DisableTrigger(GetTriggeringTrigger())

set O=null

set O=D[(1+GetPlayerId(GetTriggerPlayer()))]

set Vr=GetTriggerPlayer()

if(cW())then

call DisplayTimedTextToForce(Iq(GetTriggerPlayer()),6.,"You do not have a hero character to save.")

call EnableTrigger(Hf)

return

else

if(bW())then

call DisplayTimedTextToForce(Iq(GetTriggerPlayer()),6.,"You must exit the Plane of Fear to be able to save.")

call EnableTrigger(Hf)

return

endif

if(BW())then

call DisplayTimedTextToForce(Iq(GetTriggerPlayer()),3.,"|c00ff8000You cannot save while mentoring, please unmentor first.|r")

call EnableTrigger(Hf)

return

endif

call TriggerExecute(gf)

call EnableTrigger(Hf)

endif

endfunction


You do not have the required permissions to view the files attached to this post.

_________________
My Warcraft III Tool Collection
If you want to chat/game with me:
Blizzard: Senethior459#1962
Discord: Kyle#7409
Steam: Spacekidkyle


Top
 Profile  
 
 Post subject: Re: Request help with SP
PostPosted: October 20th, 2009, 11:49 pm 
Offline
Newcomer

Joined: December 24th, 2007, 10:09 pm
Posts: 22
Quote:
So that function CW now looks like this:
Spoiler:
Code:
function CW takes nothing returns nothing

call DisableTrigger(GetTriggeringTrigger())

set O=null

set O=D[(1+GetPlayerId(GetTriggerPlayer()))]

set Vr=GetTriggerPlayer()

if(cW())then

call DisplayTimedTextToForce(Iq(GetTriggerPlayer()),6.,"You do not have a hero character to save.")

call EnableTrigger(Hf)

return

else

if(bW())then

call DisplayTimedTextToForce(Iq(GetTriggerPlayer()),6.,"You must exit the Plane of Fear to be able to save.")

call EnableTrigger(Hf)

return

endif

if(BW())then

call DisplayTimedTextToForce(Iq(GetTriggerPlayer()),3.,"|c00ff8000You cannot save while mentoring, please unmentor first.|r")

call EnableTrigger(Hf)

return

endif

call TriggerExecute(gf)

call EnableTrigger(Hf)

endif

endfunction


That was one of my first attempts and i attempted with ur J file to double check and it doesnt work for this reason all we are doing is deleting the code for the u cannot save message... but later on in the code there is also a section that turns it on when someone actually tries to save and that needs to be where function AW is .... u can find the part im talking about by going in the J file and searching for "vexorian" and u will see what i mean


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 27 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

phpBB SEO


Privacy Policy Statement
Impressum (German)