Request help with SP

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

bjg5106
Newcomer
Posts: 16
Joined: December 24th, 2007, 10:09 pm

Request help with SP

Post by bjg5106 »

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.
[=ryCgg=]
Senior Member
Posts: 152
Joined: October 5th, 2009, 7:31 am
Title: Taiwan, Singapore
Location: Here!? XD

Re: Request help with SP

Post by [=ryCgg=] »

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.
User avatar
haxorico
Super Moderator
Posts: 3190
Joined: February 24th, 2009, 1:31 pm
Location: JEW LAND

Re: Request help with SP

Post by haxorico »

Code: Select all

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: Select all

set kq=0

to

Code: Select all

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


or change this line

Code: Select all

set kq=kq+1

to

Code: Select all

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


or

Code: Select all

set bj_isSinglePlayer=(kq==1)

to

Code: Select all

set bj_isSinglePlayer=(kq==0)


or just delete all those lines i said on the top of the reply..
Last edited by haxorico on October 21st, 2009, 12:36 am, edited 5 times in total.
Image
Spoiler:
(02:24:09)

Code: Select all

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: Select all


(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: Select all

(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: Select all

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

Code: Select all

(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: Select all

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

Code: Select all

(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: Select all

(10:08:02) Bartimaeus: you do know run I youtube channel for my favorite music, right?
[=ryCgg=]
Senior Member
Posts: 152
Joined: October 5th, 2009, 7:31 am
Title: Taiwan, Singapore
Location: Here!? XD

Re: Request help with SP

Post by [=ryCgg=] »

._. , 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'.
User avatar
haxorico
Super Moderator
Posts: 3190
Joined: February 24th, 2009, 1:31 pm
Location: JEW LAND

Re: Request help with SP

Post by haxorico »

[=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: Select all

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: Select all


(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: Select all

(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: Select all

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

Code: Select all

(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: Select all

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

Code: Select all

(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: Select all

(10:08:02) Bartimaeus: you do know run I youtube channel for my favorite music, right?
bjg5106
Newcomer
Posts: 16
Joined: December 24th, 2007, 10:09 pm

Re: Request help with SP

Post by bjg5106 »

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.
User avatar
haxorico
Super Moderator
Posts: 3190
Joined: February 24th, 2009, 1:31 pm
Location: JEW LAND

Re: Request help with SP

Post by haxorico »

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: Select all

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: Select all


(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: Select all

(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: Select all

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

Code: Select all

(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: Select all

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

Code: Select all

(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: Select all

(10:08:02) Bartimaeus: you do know run I youtube channel for my favorite music, right?
bjg5106
Newcomer
Posts: 16
Joined: December 24th, 2007, 10:09 pm

Re: Request help with SP

Post by bjg5106 »

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
User avatar
Senethior459
Forum Staff
Posts: 2619
Joined: June 2nd, 2007, 6:53 pm
Title: I Just Lost the Game

Re: Request help with SP

Post by Senethior459 »

Well, if you search for -save
you'll find this:
Spoiler:

Code: Select all

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: Select all

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: Select all

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: Select all

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
bjg5106
Newcomer
Posts: 16
Joined: December 24th, 2007, 10:09 pm

Re: Request help with SP

Post by bjg5106 »

So that function CW now looks like this:
Spoiler:

Code: Select all

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