• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

JNGP - Errors from nothing

Status
Not open for further replies.
Level 5
Joined
Jul 17, 2013
Messages
128
JNGP - Errors from war3map.j

Hello, i exported from one my map all imports with jngp (extension > export files), opened second map, where i imported all files (extension > import directory) and when jngp tried to save map, it show mi error in war3map.j But i didnt do anything with that file. I closed jngp world editor and reopened it on new/blank map - tried to save and editor still shows me lots of errors in war3map.j In normal editor it doesnt do, only in jngp. DO SOMEBODY HAVE IDEA WHY I AM GETTING THIS CRAP ERROR? because i dont have any idea Please help
 
Level 5
Joined
Jul 17, 2013
Messages
128
errors are in war3map.j and every map has this file different :D (so i cant post here error message, because its different) AND as i said, this error shows in ANY MAP without IMPORTING or anything

as i said, i EXPORTED all IMPORTS (Import Editor stuffs) and imported them in second map...

please read my post up, i am just repeating for nothing -.-
 
Level 26
Joined
Aug 18, 2009
Messages
4,097
The normal editor does not have the >Extension >Export/Import multiple Files function at all.

errors are in war3map.j and every map has this file different :D

So pick an empty one and post the code and what errors pop up. And preferably give the bugged map too. I do not have clairvoyance (unless I play support in LoL) and cannot reconstruct the problem from your description on my end.

(so i cant post here error message, because its different) AND as i said, this error shows in ANY MAP without IMPORTING or anything

The JNGP function affects map internals like the environment, script, object placements etc., that you normally won't see as imports in the import manager.
 
Level 5
Joined
Jul 17, 2013
Messages
128
is there chance, that i corupt war3map.j file somehow and jngp 2.0 cannot save anything?

Look on "error" in war3map.j file ->
//===========================================================================
//
// Další mapa pro Warcraft III
//
// Warcraft III map script
// Generated by the Warcraft III World Editor
// Date: Tue May 13 20:08:38 2014
// Map Author: Neznámý
//
//===========================================================================

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

globals
// Generated
trigger gg_trg_Inicializace___arv__tky = null
endglobals

function InitGlobals takes nothing returns nothing
endfunction

//***************************************************************************
//*
//* Triggers
//*
//***************************************************************************

//===========================================================================
// Trigger: Inicializace šarvátky
//
// Inicializace standardní šarvátky pro všechny hráče
//===========================================================================
function Trig_Inicializace___arv__tky_Actions takes nothing returns nothing
call MeleeStartingVisibility( )
call MeleeStartingHeroLimit( )
call MeleeGrantHeroItems( )
call MeleeStartingResources( )
call MeleeClearExcessUnits( )
call MeleeStartingUnits( )
call MeleeStartingAI( )
call MeleeInitVictoryDefeat( )
endfunction

//===========================================================================
function InitTrig_Inicializace___arv__tky takes nothing returns nothing
set gg_trg_Inicializace___arv__tky = CreateTrigger( )
call TriggerAddAction( gg_trg_Inicializace___arv__tky, function Trig_Inicializace___arv__tky_Actions )
endfunction

//===========================================================================
function InitCustomTriggers takes nothing returns nothing
call InitTrig_Inicializace___arv__tky( )
endfunction

//===========================================================================
function RunInitializationTriggers takes nothing returns nothing
call ConditionalTriggerExecute( gg_trg_Inicializace___arv__tky )
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), true )
call SetPlayerController( Player(0), MAP_CONTROL_USER )

endfunction

function InitCustomTeams takes nothing returns nothing
// Force: TRIGSTR_002
call SetPlayerTeam( Player(0), 0 )

endfunction

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

//===========================================================================
function main takes nothing returns nothing
call SetCameraBounds( -3328.0 + GetCameraMargin(CAMERA_MARGIN_LEFT), -3584.0 + GetCameraMargin(CAMERA_MARGIN_BOTTOM), 3328.0 - GetCameraMargin(CAMERA_MARGIN_RIGHT), 3072.0 - GetCameraMargin(CAMERA_MARGIN_TOP), -3328.0 + GetCameraMargin(CAMERA_MARGIN_LEFT), 3072.0 - GetCameraMargin(CAMERA_MARGIN_TOP), 3328.0 - GetCameraMargin(CAMERA_MARGIN_RIGHT), -3584.0 + GetCameraMargin(CAMERA_MARGIN_BOTTOM) )
call SetDayNightModels( "Environment\\DNC\\DNCLordaeron\\DNCLordaeronTerrain\\DNCLordaeronTerrain.mdl", "Environment\\DNC\\DNCLordaeron\\DNCLordaeronUnit\\DNCLordaeronUnit.mdl" )
call NewSoundEnvironment( "Default" )
call SetAmbientDaySound( "LordaeronSummerDay" )
call SetAmbientNightSound( "LordaeronSummerNight" )
call SetMapMusic( "Music", true, 0 )
call InitBlizzard( )
call InitGlobals( )
call InitCustomTriggers( )
call RunInitializationTriggers( )

endfunction

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

function config takes nothing returns nothing
call SetMapName( "Další mapa pro Warcraft III" )
call SetMapDescription( "Bez popisu" )
call SetPlayers( 1 )
call SetTeams( 1 )
call SetGamePlacement( MAP_PLACEMENT_USE_MAP_SETTINGS )

call DefineStartLocation( 0, -2432.0, -832.0 )

// Player setup
call InitCustomPlayerSlots( )
call SetPlayerSlotAvailable( Player(0), MAP_CONTROL_USER )
call InitGenericPlayerSlots( )
endfunction

and i have "errors" on lines 826 to 10000 something and 38 to 45 and 50 to 99... BUT this is error code from new map (Editor - New Map [Ctrl+N])

PS: isnt that strange? this code has max 120(?) lines and i have errors on 10k lines :D i simply cant understand this...

EDIT: i loaded (jngp 2.0) some day ago old map (for patch 1.23 i think) and i saw same errors and then i load my original map for editing... can this old map corupted my jngp? (redownload doesnt work)

EDIT2: i notice that when i am trying save blank map with jngp, it "saves" in .w3m and not in .w3x, even if i have custom units etc. Maybe jngp somehow turned into old warcraft patch and now it cant turn back to 1.26

(map to see, if somebody want...)
 

Attachments

  • test.w3m
    17.2 KB · Views: 67
Last edited:
Level 5
Joined
Jul 17, 2013
Messages
128
oh and what about that corupted war3map.j file? why it does T_T

jngp jass helpers (both) say that code is succesfuly saved but editor immediately say that i have error on 10k lines, but map have only 100 lines of everything

so any suggestion?
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
Make sure Jass Helper has been updated to include the new native list and the latest version. The version you get with JNGP is obsolete and does not support modern WC3.
I said it already.

You need the latest JassHelper with the new native list for it to work and not show that error. There may or may not be some other funny file you need to move around, I forget. Try one of the newer fake versions like someone suggested as they have that already done and the extra features they come with are often ignorable and harmless.
 
Level 5
Joined
Jul 17, 2013
Messages
128
as you can see, on right i have jass helper on newest version and on left you can see that jass helper said "Succesfull" but editor still bring me errors (Chyby skriptu - Script Error) for no reason
 

Attachments

  • jngp.jpg
    jngp.jpg
    208.9 KB · Views: 127

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
You have disabled the normal World Edit syntax check right? Its in one of the pull down menus at the top of the terrain window.

The two are mutually exclusive. JassHelper has to replace the normal syntax check as the normal syntax check will always throw errors when parsing vJASS.

I use 0.A.2.A and it works fine for me.
 
Level 5
Joined
Jul 17, 2013
Messages
128
You have disabled the normal World Edit syntax check right? Its in one of the pull down menus at the top of the terrain window.

The two are mutually exclusive. JassHelper has to replace the normal syntax check as the normal syntax check will always throw errors when parsing vJASS.

I use 0.A.2.A and it works fine for me.

Thank god! and you of course, yes i didnt have for some reason disabled it. Now it works great! Thank you
 
Status
Not open for further replies.
Top