lfnetwork.com mark read register faq members calendar

Thread: Strange FOC scripting issue
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 12-29-2014, 02:46 PM   #1
Nimbus9
Lurker
 
Join Date: Dec 2014
Posts: 8
Strange FOC scripting issue

Just like the title says. See, I can add new units/GCs/maps/etc without a problem, but when I try to run a (LUA) script it crashes with an exception. It's strange because 1) it doesn't crash in EaW and 2) if i play a tutorial first, it doesn't crash (but I can only have one state because the others won't ever trigger)

I'm using win7 64bit with the RAM patch btw
Nimbus9 is offline   you may: quote & reply,
Old 12-30-2014, 07:27 AM   #2
Melvinjg96
Rookie
 
Join Date: Dec 2014
Posts: 12
I have some experience with LUA's... What program do you use to open them? And does this occur with every LUA file you run?
Melvinjg96 is offline   you may: quote & reply,
Old 12-30-2014, 08:41 AM   #3
Nimbus9
Lurker
 
Join Date: Dec 2014
Posts: 8
I'm using Notepad++

It seems to happen with every script...
EDIT: doesn't crash out but still only triggers the first state event

Last edited by Nimbus9; 12-30-2014 at 03:46 PM.
Nimbus9 is offline   you may: quote & reply,
Old 12-30-2014, 06:12 PM   #4
Nimbus9
Lurker
 
Join Date: Dec 2014
Posts: 8
Nevermind, LOL.

Turns out I forgot this line:

Code:
require("PGStateMachine")
And I didn't have the problem in EAW because EAW's PGStoryMode includes the PGStateMachine module already.

I suspected it would be something really easy >.>
Nimbus9 is offline   you may: quote & reply,
Old 12-30-2014, 06:49 PM   #5
Melvinjg96
Rookie
 
Join Date: Dec 2014
Posts: 12
Haha okay. Glad it worked out fine lol :') Say this mod you're making, what is it about? It sounds interesting
Melvinjg96 is offline   you may: quote & reply,
Old 12-30-2014, 10:36 PM   #6
Nimbus9
Lurker
 
Join Date: Dec 2014
Posts: 8
Basically, it's an infinity-style expansion campaign, wherein you play the Empire. In this reality, the Death Star was destroyed - BEFORE the empire could use it. You start small with like 2 planets and the everyone else has you outgunned, then you grow in power and conquer the galaxy kind of thing. I've been working on it for several weeks now, and my plans include custom models, particle effects, branching storylines, customizable tech tree (i.e. complete a mission and get THIS ship OR that ship... but not both) and basically other random stuff. I still haven't gotten very far at this point - just trying to fix enemy spawns on the second mission (for some reason the game doesn't seem to like nesting loops). Yeah, I'm wanting it to be rather fun, but there's still a while to go.

Nimbus9 is offline   you may: quote & reply,
Old 12-31-2014, 10:41 AM   #7
Melvinjg96
Rookie
 
Join Date: Dec 2014
Posts: 12
Sounds nice I'd play it. I am making a mod about an alternative timeline taking place after the events of the Imperial Civil War. New Republic and Imperial Remnant have made peace and formed the Galactic Alliance while an alien race invades the galaxy Yuuzhan Vong style and they conquer the majority of the galaxy within a week, pushing the alliance back to the south. They work hard to create new weapons that can defeat the aliens but they also suffer from attacks from Imperial extremists who believe the Alliance isn't suitable to lead the galaxy in the war against the aliens lol :') There's going to be multiple campaings but atm I am adding in new units and trying to redesign skirmish mode to be much more advanced :')
Melvinjg96 is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > Empire At War > EaW General Discussion > Modding forum > Strange FOC scripting issue

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:03 PM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.