View unanswered posts | View active topics It is currently Thu Jan 16, 2025 1:43 pm



Reply to topic  [ 7 posts ] 
 Help for a newbie? 
Author Message

Joined: Sat Dec 18, 2010 7:33 pm
Posts: 1
Reply with quote
Post Help for a newbie?
I was wondering if anyone could point me to where I could find a basic help guide. I've looked through the "Important Thread" thread, but I couldn't find anything on the basics really. What I mean is like details on game modes and such. I was trying to play some scenarios like Skirmish Defense and Survival (along with a few others) and I'm not exactly sure how to go about placing things (like is there a way to rotate certain objects?) Also, when I do say I'm ready, I basically win instantly?

Any kind of help would be good, I've played the tutorial a few times, and I'm really liking the concept, it's fun as hell. I'd just like some help is all, thanks in advance!


Sat Dec 18, 2010 10:59 pm
Profile
User avatar

Joined: Tue Dec 12, 2006 3:10 pm
Posts: 495
Location: Uncertain quantum state
Reply with quote
Post Re: Help for a newbie?
Go skim through the Epic Moments thread and look at the bunker designs in there.
Stuff can't be rotated, but bunker pieces come in all shapes.

If you are instantly winning something, it's a bug. Try to figure out how to reproduce it and post it here.


Sat Dec 18, 2010 11:05 pm
Profile

Joined: Fri Dec 17, 2010 5:53 pm
Posts: 7
Reply with quote
Post Re: Help for a newbie?
IamFuzzles wrote:
I was wondering if anyone could point me to where I could find a basic help guide. I've looked through the "Important Thread" thread, but I couldn't find anything on the basics really. What I mean is like details on game modes and such. I was trying to play some scenarios like Skirmish Defense and Survival (along with a few others) and I'm not exactly sure how to go about placing things (like is there a way to rotate certain objects?) Also, when I do say I'm ready, I basically win instantly?

Any kind of help would be good, I've played the tutorial a few times, and I'm really liking the concept, it's fun as hell. I'd just like some help is all, thanks in advance!



Weird, same problem I had. Though it suddenly stopped instant winning me today and now I can play those scenarios normally.


Sun Dec 19, 2010 12:45 am
Profile
User avatar

Joined: Sun Feb 21, 2010 10:40 pm
Posts: 97
Reply with quote
Post Re: Help for a newbie?
The reason you instantly win is because you probably didn't set which team the computer is on.


Thu Dec 23, 2010 4:35 am
Profile

Joined: Thu Dec 23, 2010 6:36 am
Posts: 1
Reply with quote
Post Re: Help for a newbie?
This instant-win bug happened to me too. Luckily with this game there is tons of Lua to mess with, so I looked at Base.rte\Scenes\Scripts\Survival.lua, and I think I have a fix.

Disclaimer: I was also brought here by the HIB2, so I only have a few days experience with this game.

The survival timer seems to start as soon as the Activity starts. So while you are building your base, it is ticking away. If you are trying to survive for 2 minutes, and spend 2+ minutes building, you win as soon as the game starts.

In the script, it seems like the timers start as soon as they are declared, and they are declared when the activity first starts. Then there is the UpdateActivity function, which I am guessing loops constantly while the activity runs. There is a massive IF statement in there, which does a bunch of stuff (AI spawning etc) if the activity is not in edit mode anymore (like when you are actually playing). There is a tiny little ELSE block, though, which runs when you are in edit mode. The StartTimer timer is reset in this ELSE block, meaning that while you are in edit mode building your base, StartTimer is constantly being reset, so it effectively starts timing properly once you exit edit mode.

The problem is, it is actually SurvivalTimer that controls the game and the Win conditions. So resetting SurvivalTimer in the same place as StartTimer seems to fix this. It seems a bit odd to me to constantly reset these timers, rather than just start them when they are needed, but this is the easiest fix.

TL;DR:

The end of the Survival.lua script looks like this:
Code:
   else
      self.StartTimer:Reset();
   end
   
   self:YSortObjectivePoints();
end


You need to add a line so it looks like this:
Code:
   else
      self.StartTimer:Reset();
      self.SurvivalTimer:Reset();
   end
   
   self:YSortObjectivePoints();
end


I've very briefly tested it, seems to work.


Thu Dec 23, 2010 7:21 am
Profile

Joined: Mon Dec 20, 2010 1:30 am
Posts: 10
Reply with quote
Post Re: Help for a newbie?
Laraso wrote:
The reason you instantly win is because you probably didn't set which team the computer is on.


No, I'm having the same problem an that's definitely not it, besides the game won't let you start if you don't select the required teams.

For me this happens on skirmish and brain vs brain.

chansu wrote:
This instant-win bug happened to me too. Luckily with this game there is tons of Lua to mess with, so I looked at Base.rte\Scenes\Scripts\Survival.lua, and I think I have a fix.

Disclaimer: I was also brought here by the HIB2, so I only have a few days experience with this game.

The survival timer seems to start as soon as the Activity starts. So while you are building your base, it is ticking away. If you are trying to survive for 2 minutes, and spend 2+ minutes building, you win as soon as the game starts.

In the script, it seems like the timers start as soon as they are declared, and they are declared when the activity first starts. Then there is the UpdateActivity function, which I am guessing loops constantly while the activity runs. There is a massive IF statement in there, which does a bunch of stuff (AI spawning etc) if the activity is not in edit mode anymore (like when you are actually playing). There is a tiny little ELSE block, though, which runs when you are in edit mode. The StartTimer timer is reset in this ELSE block, meaning that while you are in edit mode building your base, StartTimer is constantly being reset, so it effectively starts timing properly once you exit edit mode.

The problem is, it is actually SurvivalTimer that controls the game and the Win conditions. So resetting SurvivalTimer in the same place as StartTimer seems to fix this. It seems a bit odd to me to constantly reset these timers, rather than just start them when they are needed, but this is the easiest fix.

TL;DR:

The end of the Survival.lua script looks like this:
Code:
   else
      self.StartTimer:Reset();
   end
   
   self:YSortObjectivePoints();
end


You need to add a line so it looks like this:
Code:
   else
      self.StartTimer:Reset();
      self.SurvivalTimer:Reset();
   end
   
   self:YSortObjectivePoints();
end


I've very briefly tested it, seems to work.



I'll try that.


Thu Dec 23, 2010 6:07 pm
Profile
User avatar

Joined: Sun Feb 21, 2010 10:40 pm
Posts: 97
Reply with quote
Post Re: Help for a newbie?
onarum wrote:
Laraso wrote:
The reason you instantly win is because you probably didn't set which team the computer is on.


No, I'm having the same problem an that's definitely not it, besides the game won't let you start if you don't select the required teams.



Skirmish Defense only requires 1 team to begin. So, if you set yourself to team 1, but don't assign the computer to a team, you are still able to begin. Then after you start the match you instantly win because you are the only player.


Thu Dec 23, 2010 6:41 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 7 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.045s | 15 Queries | GZIP : Off ]