Help with Enabling SP

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

User avatar
Zak_77
Newcomer
Posts: 14
Joined: May 30th, 2010, 11:52 pm
Location: The Magical World of Unicorns

Help with Enabling SP

Post by Zak_77 »

I've been having trouble enabling singeplayer in alot of maps lately. I've used all of the listed methods and have ended in a dead end or they haven't done anything. I am a slow learner and if anybody is willing to take the time to chat with me about it I may be able to learn a bit better, but reading these guides isn't working at all. No, I'm not a retard. I've been trying to fulfill more than just the JJCP requests, but I can't seem to learn how to enable SP. Please and thanks.

-Zak
YOU THOUGHT WRONG!
User avatar
Lanaya
Banned-To-Be
Posts: 1378
Joined: July 28th, 2008, 6:28 pm
Title: Administrator

Re: Help with Enabling SP

Post by Lanaya »

It'd help if you upload the map and tells us what happens when you try to play single player.
:D
Image
League of legends North America - Nietono
User avatar
Zak_77
Newcomer
Posts: 14
Joined: May 30th, 2010, 11:52 pm
Location: The Magical World of Unicorns

Re: Help with Enabling SP

Post by Zak_77 »

Well, it isn't any specific map, I'm just retarded when it comes to enabling ANY SP.But I'll give you one of the one's I tried to enable SP on. I just can't seem to get any of the enabling methods to work for me as of yet. I've tried to search -save, it came up with things, but when i searched disabletrigger it came up with nothing. I searched player_slot thing, there was no X+X=1 , just a bunch of I + I = 1 or I>11 . I'm not sure if I'm missing something or what.
You do not have the required permissions to view the files attached to this post.
YOU THOUGHT WRONG!
User avatar
Senethior459
Forum Staff
Posts: 2618
Joined: June 2nd, 2007, 6:53 pm
Title: I Just Lost the Game

Re: Help with Enabling SP

Post by Senethior459 »

Err... I hate to break it to you, but it doesn't necessarily have to be X. X just means a variable; it can be any letter, or even a group of letters if they set it to that. Follow the guide, but know that when it says X, it means l for your map.
My Warcraft III Tool Collection
If you want to chat/game with me:
Blizzard: Senethior459#1962
Discord: Kyle#7409
Steam: Spacekidkyle
User avatar
Zak_77
Newcomer
Posts: 14
Joined: May 30th, 2010, 11:52 pm
Location: The Magical World of Unicorns

Re: Help with Enabling SP

Post by Zak_77 »

alright, ill do some more screwing around and see if something happens, thanks alot for the help guys
YOU THOUGHT WRONG!
User avatar
haxorico
Super Moderator
Posts: 3198
Joined: February 24th, 2009, 1:31 pm
Location: JEW LAND
Been thanked: 1 time

Re: Help with Enabling SP

Post by haxorico »

What happens on Single Player in this specific map you uploaded?
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?
User avatar
Zak_77
Newcomer
Posts: 14
Joined: May 30th, 2010, 11:52 pm
Location: The Magical World of Unicorns

Re: Help with Enabling SP

Post by Zak_77 »

i have absolutely no idea

Edit: The person says cant save and cant load
YOU THOUGHT WRONG!
User avatar
haxorico
Super Moderator
Posts: 3198
Joined: February 24th, 2009, 1:31 pm
Location: JEW LAND
Been thanked: 1 time

Re: Help with Enabling SP

Post by haxorico »

Well I just checked and bullshit what happens is you get kicked. Now usually for kicks there are 2 commands in jass.

Code: Select all

CustomVictoryBJ
This means that a player will win and thus end the game for him

Code: Select all

CustomDefeatBJ
This means that a player will be defeated thus end the game for him.
Now how can you tell what is kicking you out?
Well when you are defeated you have 4 option window. restart / reduce dificulity / 2 other I cant remember now
When you win I think you have 2 options.. Cant remember now.

So now if you want to enable SP can do 1 of 2 things.
1) stop the map from recognizing its SP
2) stop the map from doing anything once it is in SP

Ill try to show you both ways for this map now.

Now for both methods the start is the same, you first need to find the function that kicks you (in this map.. not all maps kick..)
So after we try to play the map once we see we won and were not defeated so open war3map.j, press CTRL+F and look for

Code: Select all

CustomVictoryBJ
youll find it on line 7864

Code: Select all

call CustomVictoryBJ(ConvertedPlayer(GetForLoopIndexA()),true,true)
So now lets see both methods.

method #1 - stopping the map from checking for SP.

Well the function that kicks you is called

Code: Select all

function Trig_Melee_Initialization_Actions takes nothing returns nothing
so lets look where in jass is this function being called.

and what do you know its right below

Code: Select all

call TriggerAddAction(gg_trg_Melee_Initialization,function Trig_Melee_Initialization_Actions)

Method #2 - stopping the map from kicking you.

Well that is the easyer part... just delete that victory command and your all set..

Have fun.
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?
User avatar
Lanaya
Banned-To-Be
Posts: 1378
Joined: July 28th, 2008, 6:28 pm
Title: Administrator

Re: Help with Enabling SP

Post by Lanaya »

Also, if you search for "-save"
it'll show you this:

Code: Select all

call TriggerRegisterPlayerChatEvent(gg_trg_hero_Save,Player(0),"-save",true)
I Can't find anything that disables that.. DisableTrigger(gg_trg_hero_save)
So maybe it's in the conditions:

Code: Select all

function Trig_hero_Save_MG_Conditions takes nothing returns boolean
if(not(GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_FOOD_USED)>0))then
return false
endif
return true
endfunction
~~~~~~~~
function Trig_hero_Load_MG_Conditions takes nothing returns boolean
if(not(GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_FOOD_USED)==0))then
return false
endif
return true
endfunction
This probably only checks if your hero is dead or not though..(Can't test this.. can't find it in map list)
so this isn't what disables saving/load
..
Image
League of legends North America - Nietono