help unable to get spawns/launch the game for testing(FIXED)

Interesting mapping tools and mapping help.

Moderator: Morax

Re: help unable to get spawns/launch the game for testing

Postby The Hoff » 24 May 2014, 22:59

Still not working. Tried a new map too. Same result.

Have reinstalled SC, patched, reinstalled the folder with the editor. The editor appears to run fine but yet still no spawns, no launch.

Im pretty sure its not a syntax error. How do I turn on logs & debug to find out what the program is encountering when I load the map?
The Hoff
Avatar-of-War
 
Posts: 82
Joined: 15 May 2014, 08:00
Has liked: 0 time
Been liked: 3 times
FAF User Name: The Hoff

Re: help unable to get spawns/launch the game for testing

Postby The Hoff » 24 May 2014, 23:05

Oh wow that last edit did it I think finally: ) OMG YES Testing in FA to be sure:)

Ok 1. The map loads. But 2. There is no commander gate in?
The Hoff
Avatar-of-War
 
Posts: 82
Joined: 15 May 2014, 08:00
Has liked: 0 time
Been liked: 3 times
FAF User Name: The Hoff

Re: help unable to get spawns/launch the game for testing

Postby D4E_Omit » 24 May 2014, 23:47

it's because it's not loading your script because of a typo, your script.lua is named duAl instead of duEl :)
Sometimes, I just feel like I want to eat pancakes.
D4E_Omit
Avatar-of-War
 
Posts: 291
Joined: 18 Feb 2013, 17:11
Has liked: 10 times
Been liked: 21 times
FAF User Name: D4E_Omit

Re: help unable to get spawns/launch the game for testing

Postby The Hoff » 24 May 2014, 23:58

Ive totally abandoned that map to start with another. This is what I'm working with now. So far the game launches. But there is no commander. The Scenario file is copied crtl c and crtl v paste right in. That fixed the launching of the game. I see spawn points on the map now too. However my commander/ACU never spawns, nor does the AI ACU. I have been able to get some structures to spawn using the prebuilt option in the game but it says you have been defeated immediately on start. Soooo no ACU?

Scenario file.

version = 3
ScenarioInfo = {
name="5292",
description="4186498",
map="/maps/5292/5292.scmap",
map_version=1,
save="/maps/5292/5292_save.lua",
script="/maps/5292/5292.lua",
size={ 256, 256 },
starts=true,
preview="",

type="skirmish",
Configurations={
standard={
customprops={ },
teams={ { armies={"ARMY_1","ARMY_2",}, name="FFA"}}
}
},

norushoffsetX_ARMY_1=0,
norushoffsetY_ARMY_1=0,
norushoffsetX_ARMY_2=0,
norushoffsetY_ARMY_2=0,
norushradius=70,

}


SCript

local ScenarioUtils = import('/lua/sim/ScenarioUtilities.lua')

function OnPopulate()
ScenarioUtils.InitializeArmies()
end

function OnStart(self)

end
The Hoff
Avatar-of-War
 
Posts: 82
Joined: 15 May 2014, 08:00
Has liked: 0 time
Been liked: 3 times
FAF User Name: The Hoff

Re: help unable to get spawns/launch the game for testing(FI

Postby The Hoff » 25 May 2014, 00:21

Ok I finally gave up on trying the copy an paste route and making the code work like how you all said. I appreciate the input finally what I did was just take the two files from sCMP008 and dump them into the folder. I have renamed only the name of the map. Now the ACU launches. It must be an extra space here or there or whatever a comma or a widget something who knows. What I know is that the map launche sand the ACU too.

Thanks for your help guys. Its working and now I finally can test maps yay!
The Hoff
Avatar-of-War
 
Posts: 82
Joined: 15 May 2014, 08:00
Has liked: 0 time
Been liked: 3 times
FAF User Name: The Hoff

Re: help unable to get spawns/launch the game for testing(FI

Postby Plasma_Wolf » 25 May 2014, 07:39

What's the map size of the map you called 5292? If it's anything else than 5 km, then I know why you ran into trouble last time
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: help unable to get spawns/launch the game for testing(FI

Postby The Hoff » 25 May 2014, 09:11

I cant pinpoint exactly what the issue was. However the files were either e copy and paste or a congolmerate of suggestions which yielded no effect. What did work was deleting the defective files script and scenario and then copying the script and scenario file from SCMP08. Then I just changed the names and data and left the formatting it.

That seemed to fix the issue. I dont know what caused it but I think I ran into a similar thing back in 2008 too.
The Hoff
Avatar-of-War
 
Posts: 82
Joined: 15 May 2014, 08:00
Has liked: 0 time
Been liked: 3 times
FAF User Name: The Hoff

Re: help unable to get spawns/launch the game for testing(FI

Postby Plasma_Wolf » 25 May 2014, 10:17

Still, if you could tell me what your map size is, then I could know if the size determination in the scenario code on the wiki is the right one or not. If you have a map size different than 256x256 (5 km x 5 km), then the code will naturally not work.

The size in the wiki code I provided is this:

Code: Select all
size={ 256, 256 },


This should be changed to the appropriate size.
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: help unable to get spawns/launch the game for testing(FI

Postby The Hoff » 27 May 2014, 07:45

I have only made 512 x 512 and a 256 x 256 test map

I figured out the script file issues.
The Hoff
Avatar-of-War
 
Posts: 82
Joined: 15 May 2014, 08:00
Has liked: 0 time
Been liked: 3 times
FAF User Name: The Hoff

Previous

Return to Mapping

Who is online

Users browsing this forum: No registered users and 1 guest