Something Went Wrong and im not sure what to do

  • Thread starter Thread starter heyimnotnoob
  • Start date Start date
Status
Not open for further replies.
H

heyimnotnoob

Guest
Right, so i'm making a map and i figure i want custom triggers, so i go and delete the default ones that appear and make a bunch of cliff and putting terrain and after about 20 minutes of putting terrain in i test the map and out comes an error saying

Script Errors
5994 Compile Errors

Line 136-141: Unregistered Native Function
Line 207: Expected a Name
Line 208-212: Expected Expression
(thats not one twentyth of it, the list goes on and on)

//===========================================================================
//
// Counter-Strike Source
//
// Warcraft III map script
// Generated by the Warcraft III World Editor
// Date: Sun Sep 25 21:26:48 2005
// Map Author: Unknown
//
//===========================================================================

//***************************************************************************
//*
//* Global Variables
//*
//***************************************************************************

globals
// Generated
trigger gg_trg_Untitled_Trigger_001 = null
endglobals

function InitGlobals takes nothing returns nothing
endfunction

//***************************************************************************
//*
//* Players
//*
//***************************************************************************

function InitCustomPlayerSlots takes nothing returns nothing

// Player 0
call SetPlayerStartLocation( Player(0), 0 )
call SetPlayerColor( Player(0), ConvertPlayerColor(0) )
call SetPlayerRacePreference( Player(0), RACE_PREF_HUMAN )
call SetPlayerRaceSelectable( Player(0), false )
call SetPlayerController( Player(0), MAP_CONTROL_USER )

// Player 1
call SetPlayerStartLocation( Player(1), 1 )
call SetPlayerColor( Player(1), ConvertPlayerColor(1) )
call SetPlayerRacePreference( Player(1), RACE_PREF_HUMAN )
call SetPlayerRaceSelectable( Player(1), false )
call SetPlayerController( Player(1), MAP_CONTROL_USER )

// Player 2
call SetPlayerStartLocation( Player(2), 2 )
call SetPlayerColor( Player(2), ConvertPlayerColor(2) )
call SetPlayerRacePreference( Player(2), RACE_PREF_ORC )
call SetPlayerRaceSelectable( Player(2), false )
call SetPlayerController( Player(2), MAP_CONTROL_USER )

// Player 3
call SetPlayerStartLocation( Player(3), 3 )
call SetPlayerColor( Player(3), ConvertPlayerColor(3) )
call SetPlayerRacePreference( Player(3), RACE_PREF_ORC )
call SetPlayerRaceSelectable( Player(3), false )
call SetPlayerController( Player(3), MAP_CONTROL_USER )

// Player 4
call SetPlayerStartLocation( Player(4), 4 )
call SetPlayerColor( Player(4), ConvertPlayerColor(4) )
call SetPlayerRacePreference( Player(4), RACE_PREF_UNDEAD )
call SetPlayerRaceSelectable( Player(4), false )
call SetPlayerController( Player(4), MAP_CONTROL_USER )

// Player 5
call SetPlayerStartLocation( Player(5), 5 )
call SetPlayerColor( Player(5), ConvertPlayerColor(5) )
call SetPlayerRacePreference( Player(5), RACE_PREF_UNDEAD )
call SetPlayerRaceSelectable( Player(5), false )
call SetPlayerController( Player(5), MAP_CONTROL_USER )

// Player 6
call SetPlayerStartLocation( Player(6), 6 )
call SetPlayerColor( Player(6), ConvertPlayerColor(6) )
call SetPlayerRacePreference( Player(6), RACE_PREF_NIGHTELF )
call SetPlayerRaceSelectable( Player(6), false )
call SetPlayerController( Player(6), MAP_CONTROL_USER )

// Player 7
call SetPlayerStartLocation( Player(7), 7 )
call SetPlayerColor( Player(7), ConvertPlayerColor(7) )
call SetPlayerRacePreference( Player(7), RACE_PREF_NIGHTELF )
call SetPlayerRaceSelectable( Player(7), false )
call SetPlayerController( Player(7), MAP_CONTROL_USER )

// Player 8
call SetPlayerStartLocation( Player(8), 8 )
call SetPlayerColor( Player(8), ConvertPlayerColor(8) )
call SetPlayerRacePreference( Player(8), RACE_PREF_RANDOM )
call SetPlayerRaceSelectable( Player(8), true )
call SetPlayerController( Player(8), MAP_CONTROL_RESCUABLE )
call SetPlayerAlliance( Player(8), Player(0), ALLIANCE_RESCUABLE, true )
call SetPlayerAlliance( Player(8), Player(1), ALLIANCE_RESCUABLE, true )
call SetPlayerAlliance( Player(8), Player(2), ALLIANCE_RESCUABLE, true )
call SetPlayerAlliance( Player(8), Player(3), ALLIANCE_RESCUABLE, true )
call SetPlayerAlliance( Player(8), Player(4), ALLIANCE_RESCUABLE, true )
call SetPlayerAlliance( Player(8), Player(5), ALLIANCE_RESCUABLE, true )
call SetPlayerAlliance( Player(8), Player(6), ALLIANCE_RESCUABLE, true )
call SetPlayerAlliance( Player(8), Player(7), ALLIANCE_RESCUABLE, true )

endfunction

function InitCustomTeams takes nothing returns nothing
// Force: TRIGSTR_014
call SetPlayerTeam( Player(0), 0 )
call SetPlayerTeam( Player(1), 0 )
call SetPlayerTeam( Player(2), 0 )
call SetPlayerTeam( Player(3), 0 )

// Allied
call SetPlayerAllianceStateAllyBJ( Player(0), Player(1), true )
call SetPlayerAllianceStateAllyBJ( Player(0), Player(2), true )
call SetPlayerAllianceStateAllyBJ( Player(0), Player(3), true )
call SetPlayerAllianceStateAllyBJ( Player(1), Player(0), true )
call SetPlayerAllianceStateAllyBJ( Player(1), Player(2), true )
call SetPlayerAllianceStateAllyBJ( Player(1), Player(3), true )
call SetPlayerAllianceStateAllyBJ( Player(2), Player(0), true )
call SetPlayerAllianceStateAllyBJ( Player(2), Player(1), true )
call SetPlayerAllianceStateAllyBJ( Player(2), Player(3), true )
call SetPlayerAllianceStateAllyBJ( Player(3), Player(0), true )
call SetPlayerAllianceStateAllyBJ( Player(3), Player(1), true )
call SetPlayerAllianceStateAllyBJ( Player(3), Player(2), true )

// Shared Vision
call SetPlayerAllianceStateVisionBJ( Player(0), Player(1), true )
call SetPlayerAllianceStateVisionBJ( Player(0), Player(2), true )
call SetPlayerAllianceStateVisionBJ( Player(0), Player(3), true )
call SetPlayerAllianceStateVisionBJ( Player(1), Player(0), true )
call SetPlayerAllianceStateVisionBJ( Player(1), Player(2), true )
call SetPlayerAllianceStateVisionBJ( Player(1), Player(3), true )
call SetPlayerAllianceStateVisionBJ( Player(2), Player(0), true )
call SetPlayerAllianceStateVisionBJ( Player(2), Player(1), true )
call SetPlayerAllianceStateVisionBJ( Player(2), Player(3), true )
call SetPlayerAllianceStateVisionBJ( Player(3), Player(0), true )
call SetPlayerAllianceStateVisionBJ( Player(3), Player(1), true )
call SetPlayerAllianceStateVisionBJ( Player(3), Player(2), true )

// Force: TRIGSTR_015
call SetPlayerTeam( Player(4), 1 )
call SetPlayerTeam( Player(5), 1 )
call SetPlayerTeam( Player(6), 1 )
call SetPlayerTeam( Player(7), 1 )

// Allied
call SetPlayerAllianceStateAllyBJ( Player(4), Player(5), true )
call SetPlayerAllianceStateAllyBJ( Player(4), Player(6), true )
call SetPlayerAllianceStateAllyBJ( Player(4), Player(7), true )
call SetPlayerAllianceStateAllyBJ( Player(5), Player(4), true )
call SetPlayerAllianceStateAllyBJ( Player(5), Player(6), true )
call SetPlayerAllianceStateAllyBJ( Player(5), Player(7), true )
call SetPlayerAllianceStateAllyBJ( Player(6), Player(4), true )
call SetPlayerAllianceStateAllyBJ( Player(6), Player(5), true )
call SetPlayerAllianceStateAllyBJ( Player(6), Player(7), true )
call SetPlayerAllianceStateAllyBJ( Player(7), Player(4), true )
call SetPlayerAllianceStateAllyBJ( Player(7), Player(5), true )
call SetPlayerAllianceStateAllyBJ( Player(7), Player(6), true )

// Shared Vision
call SetPlayerAllianceStateVisionBJ( Player(4), Player(5), true )
call SetPlayerAllianceStateVisionBJ( Player(4), Player(6), true )
call SetPlayerAllianceStateVisionBJ( Player(4), Player(7), true )
call SetPlayerAllianceStateVisionBJ( Player(5), Player(4), true )
call SetPlayerAllianceStateVisionBJ( Player(5), Player(6), true )
call SetPlayerAllianceStateVisionBJ( Player(5), Player(7), true )
call SetPlayerAllianceStateVisionBJ( Player(6), Player(4), true )
call SetPlayerAllianceStateVisionBJ( Player(6), Player(5), true )
call SetPlayerAllianceStateVisionBJ( Player(6), Player(7), true )
call SetPlayerAllianceStateVisionBJ( Player(7), Player(4), true )
call SetPlayerAllianceStateVisionBJ( Player(7), Player(5), true )
call SetPlayerAllianceStateVisionBJ( Player(7), Player(6), true )

// Force: TRIGSTR_016
call SetPlayerTeam( Player(8), 2 )

endfunction

function InitAllyPriorities takes nothing returns nothing

call SetStartLocPrioCount( 0, 5 )
call SetStartLocPrio( 0, 0, 1, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 0, 1, 2, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 0, 2, 4, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 0, 3, 5, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 0, 4, 6, MAP_LOC_PRIO_LOW )

call SetStartLocPrioCount( 1, 1 )
call SetStartLocPrio( 1, 0, 7, MAP_LOC_PRIO_HIGH )

call SetStartLocPrioCount( 2, 2 )
call SetStartLocPrio( 2, 0, 3, MAP_LOC_PRIO_LOW )
call SetStartLocPrio( 2, 1, 5, MAP_LOC_PRIO_HIGH )

call SetStartLocPrioCount( 3, 1 )
call SetStartLocPrio( 3, 0, 2, MAP_LOC_PRIO_HIGH )

call SetStartLocPrioCount( 4, 1 )
call SetStartLocPrio( 4, 0, 6, MAP_LOC_PRIO_HIGH )

call SetStartLocPrioCount( 5, 3 )
call SetStartLocPrio( 5, 0, 2, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 5, 1, 4, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 5, 2, 6, MAP_LOC_PRIO_HIGH )

call SetStartLocPrioCount( 6, 1 )
call SetStartLocPrio( 6, 0, 4, MAP_LOC_PRIO_HIGH )

call SetStartLocPrioCount( 7, 1 )
call SetStartLocPrio( 7, 0, 1, MAP_LOC_PRIO_HIGH )
endfunction

//***************************************************************************
//*
//* Main Initialization
//*
//***************************************************************************

//===========================================================================
function main takes nothing returns nothing
call SetCameraBounds( -15616.0 + GetCameraMargin(CAMERA_MARGIN_LEFT), -15872.0 + GetCameraMargin(CAMERA_MARGIN_BOTTOM), 15616.0 - GetCameraMargin(CAMERA_MARGIN_RIGHT), 15360.0 - GetCameraMargin(CAMERA_MARGIN_TOP), -15616.0 + GetCameraMargin(CAMERA_MARGIN_LEFT), 15360.0 - GetCameraMargin(CAMERA_MARGIN_TOP), 15616.0 - GetCameraMargin(CAMERA_MARGIN_RIGHT), -15872.0 + GetCameraMargin(CAMERA_MARGIN_BOTTOM) )
call SetDayNightModels( "Environment\\DNC\\DNCLordaeron\\DNCLordaeronTerrain\\DNCLordaeronTerrain.mdl", "Environment\\DNC\\DNCLordaeron\\DNCLordaeronUnit\\DNCLordaeronUnit.mdl" )
call NewSoundEnvironment( "Default" )
call SetAmbientDaySound( "CityScapeDay" )
call SetAmbientNightSound( "CityScapeNight" )
call SetMapMusic( "Music", true, 0 )
call InitBlizzard( )
call InitGlobals( )

endfunction

//***************************************************************************
//*
//* Map Configuration
//*
//***************************************************************************

function config takes nothing returns nothing
call SetMapName( "TRIGSTR_001" )
call SetMapDescription( "TRIGSTR_003" )
call SetPlayers( 9 )
call SetTeams( 9 )
call SetGamePlacement( MAP_PLACEMENT_TEAMS_TOGETHER )

call DefineStartLocation( 0, 13760.0, 11456.0 )
call DefineStartLocation( 1, 12800.0, -4288.0 )
call DefineStartLocation( 2, -5696.0, 10944.0 )
call DefineStartLocation( 3, -13760.0, 14208.0 )
call DefineStartLocation( 4, 640.0, -512.0 )
call DefineStartLocation( 5, -2240.0, 4928.0 )
call DefineStartLocation( 6, -2944.0, -1664.0 )
call DefineStartLocation( 7, 11200.0, -12480.0 )
call DefineStartLocation( 8, -5632.0, -2560.0 )

// Player setup
call InitCustomPlayerSlots( )
call InitCustomTeams( )
call InitAllyPriorities( )
endfunction

Please tell me what went wrong here and how to fix it.
 
No, the name of his map is "Counter-Strike Source".
 
Hmmm... i blame jass, just makes things harder, i only use that for stuff that has to have it.... :o
 
That really doesn't help at all, seeing as he did not create any of that.

I suspect that the problems are on lines 136-141, 207, and 208-212.
 
Sargon said:
That really doesn't help at all, seeing as he did not create any of that.


I just found out about that script feture, sorry i thought was just a bunch of copyed and pasted triggers :)
 
well there' nothing wrong with this war3map.j ... but it loooks like something in blizzard.j or common.j are not reading. it should be the version, or
u put something in a init trigger and it blocks the map.
check again your triggers. something is wrong on it..
 
Sargon said:
I suspect that the problems are on lines 136-141, 207, and 208-212.

Anyone who actually knows well what the stuff means want to check these out?
 
but who wants to take the time to count down until 136?!?! :P

Ill try to count doown... let me check..

[edit] dam omega-mod's code system is helpful :)

this is the lines 136-141

Code:
call SetPlayerAllianceStateVisionBJ( Player(2), Player(1), true )
call SetPlayerAllianceStateVisionBJ( Player(2), Player(3), true )
call SetPlayerAllianceStateVisionBJ( Player(3), Player(0), true )
call SetPlayerAllianceStateVisionBJ( Player(3), Player(1), true )
call SetPlayerAllianceStateVisionBJ( Player(3), Player(2), true )

207
Code:
207 is a blank line



208-212

Code:
call SetStartLocPrioCount( 6, 1 )
call SetStartLocPrio( 6, 0, 4, MAP_LOC_PRIO_HIGH )

call SetStartLocPrioCount( 7, 1 )
call SetStartLocPrio( 7, 0, 1, MAP_LOC_PRIO_HIGH )

im not sure if all this is right, i might have started the code too early..
 
Get non-warez version of the editor, a better crack or Use daemon tools with a valid image instead of cracks
 
I have version 1.18, and im also looking for my warcraft cd so that i can unload my no cd thing, i guess i now know its best to stay away from those things..

but as i said in my earlier post, the list goes on and on, here are a few more of those wretched errors

line 213-624: expected Expression
Line 927-929: expected a name
line 931-933: expected 'endloop'
line 936-949: expected a name
line 951: expected 'endloop'
line 966: expected a name
line 968: expected a code statement
line 971: expected a variable name
line 974: expected a name
line 975-976 expected a variable name
line 989-993 expected a name
line 995: expected 'endloop'
line 1008: expected a name
line 1010: expected a code statement
line 1013-1015: expected a variable name
line 1018: expected a name
line 1020: expected a code statement
line 1027: Need return value in function

To be honest, thats not even close to have of the list, as i want back on this dozen. all i have in my trigger editor is a catagory, a trigger, the event 'Map initalization' and the action 'Do Nothing' and i only put that in because i didnt know what to do after seeing this error the first time...
 
did you make this yourself, or copy and paste in into a map, if so, there enlies your problem
 
CD cracks can do all sorts of funky stuff, as they are only a substitute for certain files, or a workaround to get into the program without making certain CD checks. I would do what Vexorian suggests, except with another suggestion--instead of pulling your hair out trying to debug this when a crack could possibly be the problem, why not try to find your CD? After all, wouldn't you feel silly if that crack was indeed the cause of all your woes after trying to fix your map for large amounts of time? Besides, is that map going to be really worth it in the end if your Warcraft III becomes corrupted or you need to perform a reformat and have no CD to reinstall the game with?
You could have the greatest map in the world, but it would likely mean nothing to you without the ability to play Warcraft III itself.

So, my suggestion to fixing the problem is to find your CD. Sounds dumb perhaps, as this is a totally unrelated instance to fixing triggers within a map, but a CD crack may very well have the potential to be your problem in the end.

But, I figured I would add an alternate idea, as well, even though my first suggestion would, in my opinion, be the best choice. Try creating another map with simpler triggers, and then testing it. Or, use a common programming approach of divide and conquer, in which you get each piece working one at a time. Finding a needle in a haystack is by no means efficient, which in a large amount of code, is similar to what you would have to do. However, if that haystack was divided into twenty haystacks, finding that needle would be much simpler if you knew which one it was in to start, eh?
 
line 1029-1031: expected end of line
line 1034: expected a variable name
line 1035: expected a name
line 1037: expected a code Statement
line 1040-1044: Expected a name
line 1046-1054: expected a code statement
line 1057: expected a name
line 1059: expected a code statement
line 1065: expected a name
line 1066-1071: expected a code statement
line 1073: expected a name
line 1074: expected a Variable name
line 1074-1079: expected a code statement
line 1081: expected a variable name
line 1081-1084: expected a code statement
line 1086: expected a name

im sure that the cd thing is completely un related, because this is the first time this has happend to me and ive been able to not get this error when i misplaced my cd before.

all these line errors and codes that i just posted, is from the error message it gave me.

Simpler triggers you say? ok here's what i have

Catagory
-New Trigger
-Map initalization
-Do Nothing
 
Try deleting the entire trigger.
 
The "unregistered native function" error is a tipical signal that it is caused by your No-cd crack, there are no ways to get that error without that. The translation is actually "You are using an old version of the World Editor but your game data is Newer" a.k.a "You are using cracked world editor of a previous version instead of one to match current version"

Obviously that error will then spread errors and cause many other errors.
 
Oh really? Well, in that case...
 
Status
Not open for further replies.
General chit-chat
Help Users
  • No one is chatting at the moment.
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    we were down for a minute - think a log file or something got too big
    +1
  • Ghan Ghan:
    The alerts say it was down for a while unfortunately.
  • Ghan Ghan:
    Didn't know what was going on while I was at work.
  • Ghan Ghan:
    Disk filled up with logs. Fixed now.
    +1
  • The Helper The Helper:
    not a problem at all thanks for getting us back up
  • The Helper The Helper:
    I think the bots are finding a way to get through the anubis
  • The Helper The Helper:
    Happy Wednesday Everyone! Hope everyone has a Fantastic Day!
    +1
  • The Helper The Helper:
    Yeah, stats are showing big bot influx like 12k page views.
  • Wizard Wizard:
    :wave:
    +1
  • Ghan Ghan:
    TH changed his avatar again. 6 more weeks of summer.
    +3
  • Wizard Wizard:
    lol
    +1
  • The Helper The Helper:
    Guys just a heads up I am going to be shutting the site down soon. I am just waiting on the NUON people to decide whether they want to transfer forum data and keep the discord. My email is [email protected] for anyone that wants to keep in touch and I have a facebook too. I will make an official post later. Love you guys and will miss everyone!
    +1
  • V-SNES V-SNES:
    Sent a pm @The Helper
  • Stephen Stephen:
    Oh no - please don't lose the Nuon content
    +1
  • The Helper The Helper:
    Someone email AtariAge and see if they want me to transfer the forum data over to it
  • Ghan Ghan:
    Could probably keep NUON stuff around here if we wanted.
  • Ghan Ghan:
    Hmm what to do about the World Editor site though?
  • Stephen Stephen:
    I'd rather personally just own a backup of the Nuon data than see it go to AtariAge honestly. If it gets enshittified as per usual, or if some of the "regular" Jaguar folks get there, it's not gonna be fun
  • The Helper The Helper:
    There will be a github of the forum data so the NUON Forum Data I guess would be available there
  • The Helper The Helper:
    World Editor is technically Ryoko stuff not mine you guys can keep that I am not in that even
  • jonas jonas:
    :( end of an era :(
  • The Helper The Helper:
    Dont think of it as an end jonas - think of it as a beginning, because really my friend that is what it is.
  • The Helper The Helper:
    Also, anyone who is reading this and is sad - don't be, turn off the Internet, step away from the box - enjoy your life - there is so much more out there for you than there is here for you.

The Helper Discord

Staff online

Members online

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top