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
  #1  
Old 04-01-2010, 03:15 PM
Nanaki Nanaki is offline
Approved Member
 
Join Date: Mar 2010
Posts: 338
Default Random Contacts

FOR THOSE WHO WANT TO DOWNLOAD THE FLEET MOD
Edit: Updated to version .04

There are quite a few important files that you must go through in order to understand this script. These are the Randomcontacts.script, the create_flight_2.script, and the activate.script (located in each and every sector)

The Randomcontacts.script is highly interwoven with the create_flight_2.script, so if I say something without elaborating, chances are I am talking something in create_flight_2.

I have been doing a lot of researching of Random contacts as of late. My first initial expeirments consisted of merely doubling the number of random contacts (in order to better understand how they work) and adding KFNI patrols in certain MSF Systems. Both of these experiments have been successes (Well, adding the KFNI did not produce the desired results, oh well), and my study of the Randomcontacts script has yielded results.

Random contacts are -always- fighters, there is not even infestructure set in place for random contact bombers or capital ships (Although it should not be too difficult to set up). The only exception to the rule is trader flights, which consist of mixed capital ships (transports) and fighters.

Random contacts also have a 'strength' modifier. The strength modifier is different from the power modifier, in that it goes through a special script that generates a random number from the strength modifier, which than becomes the power modifier. The degree of randomization can be anywhere from Strength minus 4, to Strength plus 3. So a Random contact with a strength of 17 can generate flights with power levels as high as 20, and as low as 13.

Another thing that is important is Portals. Each randomcontact has a list of portals that they will enter and exit. They will ignore all other portals.

When Random contacts enter a sector, they have a specific set of waypoints that they must follow, and once they reach all the waypoints, they will than head to a portal and exit the sector.

Finally, there is a probability modifier. To better understand this, one must go to this little tidbit:
StartRandomContacts(80, 60);

All sectors with random contacts have this. It basically tells the random contacts to start. The first number is the initial interval, in which case, the game will wait 80 seconds before triggering the first spawn of random contacts.

The second number is all intervals after that. After the initial 80 seconds, it will call a spawn every 60 seconds. The 'probability' part of each registered random contact is the probability of that random contact spawning.

I know this might seem like cutting it short, but it is all I have for now. I have several goals I am considering going after, including:

1: Adding military convoys. These transport convoys will be carrying mainly weapons, equipment, and ships. Probably the easiest, since I can use the Trader code as a guideline.

2: Adding fleets.

3: Adding more conflict.

Last edited by Nanaki; 10-29-2014 at 07:20 PM.
Reply With Quote
  #2  
Old 04-01-2010, 03:49 PM
tsavo tsavo is offline
Approved Member
 
Join Date: Mar 2010
Posts: 73
Default

playing the second time,
run into a 5k hunting mission in the first session,
and a 10k hunting mission this time

in general, this piece of universi is tooooo quiet, is there any way to make a lot of noises(conversions) out of docking direction, rejection and confirmation; discover of enemy; call for help; priate's demand; and so on?

i do love to have a much more interactive space.
Reply With Quote
  #3  
Old 04-01-2010, 04:48 PM
Nanaki Nanaki is offline
Approved Member
 
Join Date: Mar 2010
Posts: 338
Default

Can I get the actions? Yeah. But the dialogue on top of that? Nope. All of the dialogue files seems to be under some kind of wierd encryption that I do not understand. It seems to be hex-based, but directly converting it to ascii has gone nowhere for me.

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

Dialog files that use coding have header "FILETYPE DYNAMIC". If you change it to "FILETYPE STANDART" you can write plain text messages. Of course, if you change existing coded dialog to STANDART you must copy all dialog options from the game and retype them, otherwise, you will see that strange sequences of signs in the game . That's why I've made new dialog files for my motherships buying script.

Last edited by Goblin Wizard; 04-01-2010 at 06:46 PM.
Reply With Quote
  #5  
Old 04-01-2010, 09:24 PM
Rastix Rastix is offline
Approved Member
 
Join Date: Jul 2008
Posts: 79
Default

Quote:
Originally Posted by Nanaki View Post
All of the dialogue files seems to be under some kind of wierd encryption that I do not understand. It seems to be hex-based, but directly converting it to ascii has gone nowhere for me.
New header "FILETYPE MODDING" will help you

Quote:
Originally Posted by Goblin Wizard View Post
Dialog files that use coding have header "FILETYPE DYNAMIC". If you change it to "FILETYPE STANDART" you can write plain text messages. Of course, if you change existing coded dialog to STANDART you must copy all dialog options from the game and retype them, otherwise, you will see that strange sequences of signs in the game . That's why I've made new dialog files for my motherships buying script.

"FILETYPE STANDART" wouldn't work properly with "active dialogs" tasks
Reply With Quote
  #6  
Old 04-01-2010, 10:17 PM
Goblin Wizard Goblin Wizard is offline
Approved Member
 
Join Date: Oct 2008
Posts: 508
Default

Thanks a lot! I was thinking why some of the dialogs work but others not. I wonder if you know another useful tricks?
Reply With Quote
  #7  
Old 04-02-2010, 01:42 AM
tsavo tsavo is offline
Approved Member
 
Join Date: Mar 2010
Posts: 73
Default

so there is no way to add some sound file to make the space more "human"?
Reply With Quote
  #8  
Old 04-02-2010, 01:56 AM
Nanaki Nanaki is offline
Approved Member
 
Join Date: Mar 2010
Posts: 338
Default

http://img31.imageshack.us/img31/6814/starwolves7.jpg

Well, Mediocre success. I managed to fully impliment Pirate military convoys, however, my original plan called for the military convoys to be divided into four tiers, starting off with the rookie stuff and eventually ending with very high-quality gear (well, for pirates), with the level of escort determined by the quality of the goods inside the transports.

However, RandomContacts really, really, -really- dislikes tiered systems, and unless I modify large sections of randomcontacts.script (which I am not comfortable enough with Lua to do). On top of this, I had difficulty getting any of my scripts to work properly. They would properly add modules to a ship's inventory, but for some odd reason they would not add ships despite having the correct function.

I eventually gave up, and decided to modify the already-existing FillTraderSimple function to my needs. It works, quite well actually, but it means that the tiered system I originally planned for is gone (Although it works with randomcontacts now), thus all Pirate convoys are rather heavily guarded with Third and Fourth generation ships.

The only thing that is left is to clean up the mess I made a little, and impliment convoy fleets for all the major factions, and than modify all the location scripts so that they spawn.

So far, I only plan on introducing USS, Triada, Inoco, Patrol, Pirate, Old Empire, and New Empire convoy fleets (the remaining factions are too small to bother with). Convoys will be heavily defended, Pirate and Patrol convoys will have mainly third and fourth generation ships (mainly because neither faction has any fifth generation ships), while the rest will have fourth and fifth generation ships guarding them (corporates would be more fourth-generation heavy, while both Old and New Empires would be heavier on fifth generation). Loot inside the transports is randomized, and can be anywhere from First generation to fifth generation, weapons are randomized the same way.

Convoys will be mainly located in systems where the faction in question has a strong presence, mainly to prevent the situation of free loot coming about because an MSF fleet stumbled upon a New Empire convoy.

Ultimately, the reason why I implimented them is that I wanted to give the player more ways to acquire fighter hulls other than either buying them, or attacking a faction's warehouse for them. If you do not like a faction, you are free to whack their convoys for free ships and loot, and even law-abiding neutral citizens can join in the fun by whacking pirate convoys (Although Pirates and Imperial Patrols generally have lesser loot, you wont ever find any fifth generation ships)...

I am considering adding an SOS system for Military convoys, but that might be thinking too far ahead.

Last edited by Nanaki; 04-02-2010 at 02:00 AM.
Reply With Quote
  #9  
Old 04-02-2010, 09:21 AM
Rastix Rastix is offline
Approved Member
 
Join Date: Jul 2008
Posts: 79
Default

Quote:
Originally Posted by Goblin Wizard View Post
Thanks a lot! I was thinking why some of the dialogs work but others not. I wonder if you know another useful tricks?
what tricks do you want to know?

Quote:
Originally Posted by tsavo View Post
so there is no way to add some sound file to make the space more "human"?
explain yourself please
Reply With Quote
  #10  
Old 04-02-2010, 03:25 PM
tsavo tsavo is offline
Approved Member
 
Join Date: Mar 2010
Posts: 73
Default

Quote:
Originally Posted by Rastix View Post
what tricks do you want to know?



explain yourself please
that is, to find a way adding radio comm sound file to docking procedure
say, if ok, u will hear a vioce "please go to docking bay 7"
if not, then u might hear "docking request denied", or what ever it suits the situation.

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 09:36 PM.


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