Crashes when hosted

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

Vodka
Newcomer
Posts: 11
Joined: February 15th, 2008, 8:30 pm

Crashes when hosted

Post by Vodka »

Hey. When I add in cheats into a jass file then replace the old one with the one i edited, it crashes. This happens in a few maps, and now in others I really don't get it.
And In the maps that have (attribute) files, i delete them yet they still crash. I have tried adding in weirdone's cheat pack, and also tried my own, seperately. They both crash. I have gotten both my cheats and weirdone's to work in other maps, but in others (tbr 1.32, dark invasion, legendary monsters) it doesn't but it did work in tbr 1.3. I'm really confused lol... I have searched this question, and read things about vexorian, and the jass file being corrupted or something but no leads. :?
So, what am i doing wrong or missing?
Thanks, Vodka
User avatar
Shamanno1
Forum Staff
Posts: 912
Joined: October 21st, 2007, 6:17 am
Title: 11
Location: WorLd Of WaRcrAfT

Re: Crashes when hosted

Post by Shamanno1 »

Well i think i know what is ure problem.
Were u insert the cheat pack under "function main takes nothing returns nothing" if the map has something like :
local weathereffect we
local integer itemID
local player p
local unit u
local integer unitID
local trigger t
local real life
local integer i

Place the cheats under the local stuff not under "function main takes nothing returns nothing"
~Everything changes~
I have met people who have no dreams, who have simply accepted their fate to work, exist, and die. They are the most miserable people I have ever known.
Vodka
Newcomer
Posts: 11
Joined: February 15th, 2008, 8:30 pm

Re: Crashes when hosted

Post by Vodka »

I checked under Main, and I am putting them under the locals. :(
User avatar
Sepharael
Forum Staff
Posts: 533
Joined: April 3rd, 2007, 11:39 pm
Title: Legendary Angel

Re: Crashes when hosted

Post by Sepharael »

Are you deleting the attributes file?
initialD
Some Honorary Title
Posts: 1713
Joined: June 8th, 2007, 5:08 am
Title: Angry Bird

Re: Crashes when hosted

Post by initialD »

in JassCraft press f9 to syntax check it. It will probably tell you what's the problem.
Also check all locals under funtion main so that they don't have the same locals.
Example:

local weathereffect we
local integer i
local integer itemID
local player p
local unit u
local integer unitID
local trigger t
local real life
local integer i <<<<delete the same local from your cheat pack.
Vodka
Newcomer
Posts: 11
Joined: February 15th, 2008, 8:30 pm

Re: Crashes when hosted

Post by Vodka »

It isn't the locals, but when using syntax checker it comes up with a few errors that were in the unmodified one, that works fine, fix (if i can) or just leave? and ive been experimenting some more, and in some of my tests it says "game not found" when trying to host.
User avatar
Sepharael
Forum Staff
Posts: 533
Joined: April 3rd, 2007, 11:39 pm
Title: Legendary Angel

Re: Crashes when hosted

Post by Sepharael »

Delete the attributes file to fix that.
Vodka
Newcomer
Posts: 11
Joined: February 15th, 2008, 8:30 pm

Re: Crashes when hosted

Post by Vodka »

I have deleted the Attributes file/It is not there, is there a possibility that MPQMaster places it under a File000000#.xxx?
User avatar
Bartimaeus
Tyrannical Drama Queen
Posts: 4445
Joined: November 19th, 2007, 5:05 am
Been thanked: 2 times

Re: Crashes when hosted

Post by Bartimaeus »

Vodka wrote:I have deleted the Attributes file/It is not there, is there a possibility that MPQMaster places it under a File000000#.xxx?
If you've got (attributes) in your listfile, than no...
User avatar
Shamanno1
Forum Staff
Posts: 912
Joined: October 21st, 2007, 6:17 am
Title: 11
Location: WorLd Of WaRcrAfT

Re: Crashes when hosted

Post by Shamanno1 »

If ure trying to insert jj pack,maybe u didn't got it right :]
~Everything changes~
I have met people who have no dreams, who have simply accepted their fate to work, exist, and die. They are the most miserable people I have ever known.