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
  #41  
Old 04-19-2010, 04:42 AM
gabriel_braun gabriel_braun is offline
Registered Member
 
Join Date: Apr 2010
Posts: 13
Default

True, and unless you can't manage to kill escorts within 5 mins then it means that you're running away!

Either way, once the host ship is killed either the escorts win or they have to rabbit... 5 mins is more than enough to see if a conflict is going your way, however I wonder at a random variable being introduced that might call for convoy-specific faction re-enforcements.... somewhat like ternie's call for precursors but occurs on a random 1-10 chance of the convoy host despawning/destroyed?
Reply With Quote
  #42  
Old 04-19-2010, 10:12 PM
gabriel_braun gabriel_braun is offline
Registered Member
 
Join Date: Apr 2010
Posts: 13
Default

Any further progress nanaki?
Reply With Quote
  #43  
Old 04-19-2010, 10:23 PM
Nanaki Nanaki is offline
Approved Member
 
Join Date: Mar 2010
Posts: 338
Default

I tried actually implimenting the script, and it ended up being a total failure. I cannot figure out why even a basic flight spawn script fails to spawn anything whatsoever. Logs are telling me nothing, so I have no clue why its not working.

At this point, I am very close to just giving up on the whole thing.

local escort1 = NewNavyFlight(groupName, "escort1_"..__formation_number, currentContact[3][portalStartIndex]:GetEntryPoint(10), 1, 6, currentContact[3][portalStartIndex]:GetOrientation());
local mainship;
mainship = getglobal("flight_randomformation_"..__formation_n umber);
local _pilot = mainship:GetPilotByNumber(1);
local _ship = _pilot:GetShip();
escort1:Escort(_ship);

This was directly inserted into the trigger generator function.

This is the most simplified script that generates no errors. This is -supposed- to spawn a Old Empire flight with every random contact, and escort the flight it spawns with. However, when I actually go in-game, nothing happens.

Last edited by Nanaki; 04-19-2010 at 10:26 PM.
Reply With Quote
  #44  
Old 04-19-2010, 10:47 PM
Goblin Wizard Goblin Wizard is offline
Approved Member
 
Join Date: Oct 2008
Posts: 508
Default

It's really hard to say anything. Looks like some tables are involved too. IMO If it works in SW2 you should start modifying there until you understand every part of the script.
Reply With Quote
  #45  
Old 04-19-2010, 10:54 PM
Nanaki Nanaki is offline
Approved Member
 
Join Date: Mar 2010
Posts: 338
Default

Quote:
It's really hard to say anything. Looks like some tables are involved too. IMO If it works in SW2 you should start modifying there until you understand every part of the script.
I do not have SW2 installed.

I understand every part of the script, the Table is the randomcontacts list, which is stored in Randomcontacts.script and used multiple times in the function I modified (Check it out for yourself, look at the trigger_generator_Action function)

I inserted the code between
local flight = currentFunction(groupName, "randomformation_"..__formation_number, currentContact[3][portalStartIndex]:GetEntryPoint(10), strength, currentContact[3][portalStartIndex]:GetOrientation());

- This spawns the random contact.

and
__formation_number = __formation_number + 1;

- This adds 1 to the formation number (Each spawned random conctact will be named like Flight_Randomformation_1, Flight_Randomformation_2, etc. etc. etc.)

No reason why it should not work. None.
Reply With Quote
  #46  
Old 04-20-2010, 11:01 AM
Goblin Wizard Goblin Wizard is offline
Approved Member
 
Join Date: Oct 2008
Posts: 508
Default

Quote:
Originally Posted by Nanaki View Post
I do not have SW2 installed.
For higher purposes uncle Torrent can help you.
Quote:
Originally Posted by Nanaki View Post
I understand every part of the script
No reason why it should not work. None.
I don't want to be rude or something but if this script is supposed to work but you can't managed it to work - you don't understand all of it. The engine has been changed (SW2/SW3) so it can handle same functions different way (guess work only). Maybe it collides with other flights in the system. Try to make your own blank system and add part by part. I think SW2 will be really helpful.
---- EDIT----
Hmm... the whole problem just get me interested. One thing I've found - your inserted code has the same variables names as are used for TRADER_FLIGHT (near the end of this function). This may effect with no escort and even no trader flights. IMO you should avoid using the same variables names for different purposes in the same function.

Last edited by Goblin Wizard; 04-20-2010 at 11:53 AM.
Reply With Quote
  #47  
Old 04-20-2010, 12:04 PM
Nanaki Nanaki is offline
Approved Member
 
Join Date: Mar 2010
Posts: 338
Default

Quote:
For higher purposes uncle Torrent can help you.
I own the game from Steam, just I do not have it installed.

Quote:
I don't want to be rude or something but if this script is supposed to work but you can't managed it to work - you don't understand all of it. The engine has been changed (SW2/SW3) so it can handle same functions different way (guess work only). Maybe it collides with other flights in the system. Try to make your own blank system and add part by part. I think SW2 will be really helpful.
I cannot see how SW2 will be useful when I never modded anything on it.

Quote:
Hmm... the whole problem just get me interested. One thing I've found - your inserted code has the same variables names as are used for TRADER_FLIGHT (near the end of this function). This may effect with no escort and even no trader flights. IMO you should avoid using the same variables names for different purposes in the same function.
Tried changing variable names, still does not work.

--EDIT--

*HEADDESK*

MY SCRIPT WAS WORKING THIS ENTIRE TIME.

http://img442.imageshack.us/img442/5411/starwolves8.jpg

I edited the Tug the player gets in the beginning to have 100000 Sensor length (basically, the whole map) and 0.2 Sensor resolution. I figured that would be enough to detect anything.

Nope. Had to change sensor resolution to 0.0 for it to properly detect the escorts spawning becide the random contacts.

Last edited by Nanaki; 04-20-2010 at 12:15 PM.
Reply With Quote
  #48  
Old 04-20-2010, 12:29 PM
Rastix Rastix is offline
Approved Member
 
Join Date: Jul 2008
Posts: 79
Default

Quote:
Originally Posted by Goblin Wizard View Post
The engine has been changed (SW2/SW3) so it can handle same functions different way (guess work only).
You are wrong Some functions are added and none of them removed It's possible to remove all new optimized functions and copy old sw2 functions to have 95% working version of SW2 on more stable sw3 engine
Reply With Quote
  #49  
Old 04-20-2010, 12:31 PM
Goblin Wizard Goblin Wizard is offline
Approved Member
 
Join Date: Oct 2008
Posts: 508
Default

At last good news Congratulations Nanaki.

Quote:
Originally Posted by Rastix View Post
You are wrong Some functions are added and none of them removed It's possible to remove all new optimized functions and copy old sw2 functions to have 95% working version of SW2 on more stable sw3 engine
Let me know one thing - Is it possible to have 2 pilots in mothership like in SW2? and how?

Last edited by Goblin Wizard; 04-20-2010 at 12:50 PM.
Reply With Quote
  #50  
Old 04-20-2010, 03:23 PM
gabriel_braun gabriel_braun is offline
Registered Member
 
Join Date: Apr 2010
Posts: 13
Default

Grats nanaki, good idea with the tug; excellent debugging tool!
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 04:39 PM.


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