Fulqrum Publishing Home   |   Register   |   Today Posts   |   Members   |   UserCP   |   Calendar   |   Search   |   FAQ

Go Back   Official Fulqrum Publishing forum > Fulqrum Publishing > Star Wolves

Star Wolves 3D space RPG with deep strategy and tactical elements

Reply
 
Thread Tools Display Modes
  #61  
Old 05-18-2010, 05:38 PM
Nanaki Nanaki is offline
Approved Member
 
Join Date: Mar 2010
Posts: 338
Default

The problem is that Triggers are the only way to have code remain with ships persistently... SW triggers are really limited in what they can do. The only decent solution I have come up with so far involves attaching a timer trigger to the despawn trigger, where it will only activate after 60-120 seconds. Now, if the spawned fleet hangs around the gate for longer than that for whatever reason (fighting, traffic, etc) then it will still bug out, but considering that is mostly rare for the most part, it will definatly reduce the issue to a minimum. Wont eliminate it entirely though, im afraid.
Reply With Quote
  #62  
Old 05-19-2010, 12:43 AM
Trucidation
Guest
 
Posts: n/a
Default

So no flags to check whether they've moved at least 1 waypoint before triggering the despawn?

Oh well, a timer is fine too. The only issue I see is if the spawn is hostile; when the player portals in and fights them, they'll despawn in mid-battle when the timer is finished, right?
Reply With Quote
  #63  
Old 05-19-2010, 01:31 AM
Nanaki Nanaki is offline
Approved Member
 
Join Date: Mar 2010
Posts: 338
Default

Quote:
Originally Posted by Trucidation View Post
So no flags to check whether they've moved at least 1 waypoint before triggering the despawn?
Nope. Triggers are rather limited on what they can and cannot do.

Quote:
Oh well, a timer is fine too. The only issue I see is if the spawn is hostile; when the player portals in and fights them, they'll despawn in mid-battle when the timer is finished, right?
That is correct. As I said, its not a perfect solution, but its the best one that I can do given the limited knowlege and tools at my disposal.
Reply With Quote
  #64  
Old 05-19-2010, 11:47 AM
skrzacik skrzacik is offline
Approved Member
 
Join Date: Apr 2010
Posts: 31
Default

Is any way to incrase numbers of fighters in pirates patrol
i ask becouse fights are to easy even when i take hard difficult
max what i saw was 5 fighters
is any way to make 10 fighters patrols without complicated script modding?
Reply With Quote
  #65  
Old 05-19-2010, 12:11 PM
Goblin Wizard Goblin Wizard is offline
Approved Member
 
Join Date: Oct 2008
Posts: 508
Default

Every sector has his own activate.script. You can find there lines like this:
NewPirateFlight("PiratesGroup_1", "pir01", Vector3(0, -10, 0), 1, 14, Vector3(3, 0, 1));
"14" stays for quantity and quality of fighters being spawned. It's further modified by difficulty level. You can choose value between 1 and 20. Without modifying tables you won't get more than 6 ships in a group.

Inside RandomContacts.script you can find:
local strength = ComputeRandomInvervalValue(power-4, power+3);
change this line to:
local strength = 20;
and randomly spawned groups will always have max power.

Last edited by Goblin Wizard; 05-19-2010 at 12:20 PM.
Reply With Quote
  #66  
Old 05-19-2010, 12:16 PM
skrzacik skrzacik is offline
Approved Member
 
Join Date: Apr 2010
Posts: 31
Default

six is better than five but what file i have to lookin for to make this changes?

im quite dummy with scripting
Reply With Quote
  #67  
Old 05-19-2010, 12:27 PM
Goblin Wizard Goblin Wizard is offline
Approved Member
 
Join Date: Oct 2008
Posts: 508
Default

just try to find "activate.script" or "randomcontacts.script" file inside SW3 folder. When you will find these files just open it and search for the lines (given in my previous post).
Reply With Quote
  #68  
Old 05-19-2010, 02:25 PM
skrzacik skrzacik is offline
Approved Member
 
Join Date: Apr 2010
Posts: 31
Default

thank u Goblin Wizard

now i have a little more fun
Reply With Quote
  #69  
Old 05-19-2010, 05:27 PM
Nanaki Nanaki is offline
Approved Member
 
Join Date: Mar 2010
Posts: 338
Default

Huge Success.

I fixed the problem. Switching the trigger over to a timer trigger was trickier than I had originally expected, but it works like a charm. One thing I do recommend, however, is to not engage fleets near portals. Luckily, I set up the spawns so that NPCs usually will not fight eachother near gates, and most of the fighting (If there is any fighting) occurs in the middle of the sector or at mission-critical spots.

The only thing thats left is to finish setting up the spawns for the Debris cluster, and I am going to test this script some more and make sure no other nasty suprises come at me.
Reply With Quote
  #70  
Old 05-19-2010, 05:57 PM
Goblin Wizard Goblin Wizard is offline
Approved Member
 
Join Date: Oct 2008
Posts: 508
Default

Nice, really nice. How big are the randomly spawned groups? From my experience any group that have more than 6 ships acts really strange. Looks like game engine has fixed group size to max 6 ships.
Reply With Quote
Reply


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. The time now is 11:06 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.