EnglishGermanFrenchRussianPolishItalianSpanish
Log inRegister
 
[Script]/[PoC] NPC Traders Using Jumpdrives OH MY
Post new topic Reply to topic
View previous topic :: View next topic
Author Message
RoverTX



MEDALMEDALMEDAL

Joined: 16 Nov 2011
Posts: 669 on topic

Thank you for registering your game
PostPosted: Sat, 12. Jan 13, 09:14    Post subject: [Script]/[PoC] NPC Traders Using Jumpdrives OH MY Reply with quote Print

This is just a Proof of Concept and so it is not a good idea to use this alone with out having first modified your Jobs file, otherwise your universe will have to many traders using to many jumpdrives. OH MY Rolling Eyes

Download V1.1 SPK Here

Allows NPC Free Traders To Jump. Use at your own risk. Its more of a proof of concept then for actually consumption. If your going to use it you have to modify your Job files so there are a lot less traders.

It works by making sure before all major move commands that NPC traders have a jump drive, and that they have the needed energy. Also doesn't allow them to use up the room that will be used for the energy cells. In theory of course. It also removes any left over energy from the jump, so your universe doesn't get flood with Ecells.

It just adds a few checks, and a few lines of math, so the additional complexity should be minimal. Even though the traders will be making more runs more often, the NPC trader logic is no where as near complicated as the UT logic. So it shouldn't slow anything down.

The only real time they wont jump is if they hit a string of failures. I left that to be done by a normal gate to gate just in case there is some additional fail safe I am not seeing.

Versions:

1- First Go

1.1 - Updated so that M3-M5 Traders Don't Have Room Wasted by extra energy cells, and made sure all traders had enough energy at max range.

Back to top
View user's profile Send private message
Realspace





Joined: 15 Nov 2006

Location: Sector "Sidera Nova"

PostPosted: Thu, 3. Sep 15, 23:12    Post subject: Reply with quote Print

Sorry for necroposting...I think this script is very interesting, since I use a modified map where sectors are very large and it could speed up the economy. Now traders have to take a long to route even if their max speed is 2.5x than the vannilla game.

Any test about it? I installed it in AP but don't see NPC jumping

Idea: would it be possible to make not all but let's say 30-50% of NPC ships use the jumpdrive?


Thank you!


_________________
X Rebirth BIG SPACE Mod:
http://forum.egosoft.com/viewtopic.php?t=350673
X Rebirth Ship Inertia Rebalance
http://forum.egosoft.com/viewtopic.php?t=353399
X Rebirth Backgrounds Mod:
http://forum.egosoft.com/viewtopic.php?t=349849
X3 TC Backgrounds and Planets Mod:
http://forum.egosoft.com/viewtopic.php?t=335218
Back to top
View user's profile Send private message Visit poster's website
RoverTX



MEDALMEDALMEDAL

Joined: 16 Nov 2011
Posts: 669 on topic

Thank you for registering your game
PostPosted: Sun, 13. Sep 15, 21:48    Post subject: Reply with quote Print

Been a few years sense I messed with this, but I tested it by sitting at a Solar Power Plant owned by an NPC and watched as the ships once they had bought their wares jumped out. Then I think I tested at a non Solar Power Plant factory. Both had the correct results.

I would have to download this again and review, but I believe they will not always jump if their hold is full up and there isn't any room to add the needed energy cells, I could be miss remembering though.

Edit: Also I don't think it was set up for them to jump to a gate in the same sector. I think this was actual some how part of the vanilla script, but I can't really remember off the top of my head.


_________________
NPC Traders With Jump Drives O My
Station Capture Through TL Boarding
B.A.M. - Bad *ss Marines
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic Reply to topic
 
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 vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
Control Panel
Login Data
The time now is Tue, 17. Oct 17, 22:36

All times are GMT + 2 Hours


Board Security

Copyright © EGOSOFT 1989-2017
Powered by phpBB © 2001, 2005 phpBB Group
Template created by Avatar & BurnIt!
Debug: page generation = 0.16706 seconds, sql queries = 17