Map corrupted after MarkerEditor

Interesting mapping tools and mapping help.

Moderator: Morax

Map corrupted after MarkerEditor

Postby Lionhardt » 18 Feb 2014, 14:20

I have put down AI markers with the hazard marker editor and this broke the map. the editor crashes instantly upon loading it and ingame the com does not spawn. I know the markers are causing it, because I have replaced the marker section in the_save.lua with a backup version of the file and the map was working again. But I would like to avoid to do 1,5 hours of marker placing all over again and on top of that maybe break the thing again.

Here is the faulty code, could somebody have a look and maybe spot whats wrong? Thank you.

http://pastebin.com/Tuhfhv4T
Help me make better maps for all of us, visit my Mapping Thread.

Maps needing gameplay feedback:
Spoiler: show
[list updated last: 31.1.2018]

(maps available in the vault)

- Hexagonian Drylands
- Fervent Soil and Torrid Suns

YouTube Channel
User avatar
Lionhardt
Contributor
 
Posts: 1070
Joined: 29 Jan 2013, 23:44
Has liked: 188 times
Been liked: 144 times
FAF User Name: Lionhardt

Re: Map corrupted after MarkerEditor

Postby Plasma_Wolf » 18 Feb 2014, 14:36

I can't take a look at the code now (I assume it is the save.lua, which is automatically generated, so I don't think anyone could find the error in a more efficient way than you: compare it with the save.lua of another map and see f there's something critical missing or something bad in the new file that isn't it here in the file of a working map).

Other than that, I have experience with one case of broken maps after messing about with the marker editor, or maps that don't work in the marker editor after changing something in the original map editor.

That problem had to do with having too many spawn points on the map. The marker editor won't load after you've added more than eight ACU spawn points in the map editor and something similar can go wrong if you do something in the marker editor.

As you can guess, this problem will not occur if you have 8 players or less in the game.
User avatar
Plasma_Wolf
Supreme Commander
 
Posts: 1335
Joined: 20 Oct 2011, 11:28
Has liked: 23 times
Been liked: 91 times
FAF User Name: Plasma_Wolf

Re: Map corrupted after MarkerEditor

Postby Dragonfire » 18 Feb 2014, 14:49

Did you connect all points?
You must connect the points, press right mouse key on a marker and drop to another!
If you try to load the map again with the Marker Editor it say the line with the error ... fix it

Ps.: sometimes the 'Naval Area' are broken ...
Search for them, e.g. Line 221
Did you see the mistake?
My native language is not english, please correct me, because I want to improve my skills # Resource Overview
User avatar
Dragonfire
Evaluator
 
Posts: 559
Joined: 19 Dec 2013, 10:18
Has liked: 39 times
Been liked: 61 times
FAF User Name: Dragonfire

Re: Map corrupted after MarkerEditor

Postby Lionhardt » 18 Feb 2014, 15:07

No I don't. 221 is the line "['prop'] = STRING( '/env/common/props/markers/M_Expansion_prop.bp' ),' )," , wich is part of

Code: Select all
                ['Naval Area 01'] = {
                    ['hint'] = BOOLEAN( true ),
                    ['color'] = STRING( 'ff0000FF' ),' ),
                    ['type'] = STRING( 'Naval Area' ),
                    ['prop'] = STRING( '/env/common/props/markers/M_Expansion_prop.bp' ),' ),
                    ['orientation'] = VECTOR3( 0, -0, 0 ),
                    ['position'] = VECTOR3( 16.5, 63.1114, 173.5 ),



The error message I get though is "Invald Symbol 'in variable name!." (written exactly so)


Edit: I have now checked all pathnodes and they all have adjacent nodes.
Help me make better maps for all of us, visit my Mapping Thread.

Maps needing gameplay feedback:
Spoiler: show
[list updated last: 31.1.2018]

(maps available in the vault)

- Hexagonian Drylands
- Fervent Soil and Torrid Suns

YouTube Channel
User avatar
Lionhardt
Contributor
 
Posts: 1070
Joined: 29 Jan 2013, 23:44
Has liked: 188 times
Been liked: 144 times
FAF User Name: Lionhardt

Re: Map corrupted after MarkerEditor

Postby Sulo » 18 Feb 2014, 15:13

Lionhardt wrote:No I don't. 221 is the line "['prop'] = STRING( '/env/common/props/markers/M_Expansion_prop.bp' ),' )," , wich is part of

Code: Select all
                ['Naval Area 01'] = {
                    ['hint'] = BOOLEAN( true ),
                    ['color'] = STRING( 'ff0000FF' ),' ),
                    ['type'] = STRING( 'Naval Area' ),
                    ['prop'] = STRING( '/env/common/props/markers/M_Expansion_prop.bp' ),' ),
                    ['orientation'] = VECTOR3( 0, -0, 0 ),
                    ['position'] = VECTOR3( 16.5, 63.1114, 173.5 ),



The error message I get though is "Invald Symbol 'in variable name!." (written exactly so)



You got extra stuff at the end of that line, it should be like:

Code: Select all
                ['Naval Area 92'] = {
                    ['hint'] = BOOLEAN( true ),
                    ['color'] = STRING( 'ff0000FF' ),
                    ['type'] = STRING( 'Naval Area' ),
                    ['prop'] = STRING( '/env/common/props/markers/M_Expansion_prop.bp' ),
                    ['orientation'] = VECTOR3( 0, -0, 0 ),
                    ['position'] = VECTOR3( 369.5, 65.56, 256.5 ),
Sulo
Avatar-of-War
 
Posts: 71
Joined: 28 Dec 2013, 20:40
Has liked: 0 time
Been liked: 6 times
FAF User Name: Sulo

Re: Map corrupted after MarkerEditor

Postby Plasma_Wolf » 18 Feb 2014, 15:23

Silo, I must miss something obvious here, but what's the difference between you code and that of lionhardt?
User avatar
Plasma_Wolf
Supreme Commander
 
Posts: 1335
Joined: 20 Oct 2011, 11:28
Has liked: 23 times
Been liked: 91 times
FAF User Name: Plasma_Wolf

Re: Map corrupted after MarkerEditor

Postby Lionhardt » 18 Feb 2014, 15:24

Ah, ok, thank you! But that wasn't it unfortunately. Map still does not load.


@Plasma: End of line 5, odd bracket and comma.
Help me make better maps for all of us, visit my Mapping Thread.

Maps needing gameplay feedback:
Spoiler: show
[list updated last: 31.1.2018]

(maps available in the vault)

- Hexagonian Drylands
- Fervent Soil and Torrid Suns

YouTube Channel
User avatar
Lionhardt
Contributor
 
Posts: 1070
Joined: 29 Jan 2013, 23:44
Has liked: 188 times
Been liked: 144 times
FAF User Name: Lionhardt

Re: Map corrupted after MarkerEditor

Postby Sulo » 18 Feb 2014, 15:27

Lionhardt wrote:Ah, ok, thank you! But that wasn't it unfortunately. Map still does not load.


@Plasma: End of line 5, odd bracket and comma.



Dont forget the asterisk and same thing in line 3 ;)

Search for more
Code: Select all
' ),' ),

in the whole code, there might be quite a few of them from what I can see.
Sulo
Avatar-of-War
 
Posts: 71
Joined: 28 Dec 2013, 20:40
Has liked: 0 time
Been liked: 6 times
FAF User Name: Sulo

Re: Map corrupted after MarkerEditor

Postby Lionhardt » 18 Feb 2014, 15:30

AH!! It worked! Thanks a billion man!!


I guess this is a bug of the marker editor? :?:
Help me make better maps for all of us, visit my Mapping Thread.

Maps needing gameplay feedback:
Spoiler: show
[list updated last: 31.1.2018]

(maps available in the vault)

- Hexagonian Drylands
- Fervent Soil and Torrid Suns

YouTube Channel
User avatar
Lionhardt
Contributor
 
Posts: 1070
Joined: 29 Jan 2013, 23:44
Has liked: 188 times
Been liked: 144 times
FAF User Name: Lionhardt

Re: Map corrupted after MarkerEditor

Postby Sulo » 18 Feb 2014, 15:35

Might be just a random praser bug, I was using the same editor and it worked just fine we might be using diffent versions or something like that though.
Sulo
Avatar-of-War
 
Posts: 71
Joined: 28 Dec 2013, 20:40
Has liked: 0 time
Been liked: 6 times
FAF User Name: Sulo

Next

Return to Mapping

Who is online

Users browsing this forum: No registered users and 1 guest