[S] [02.03.08] [X3 3.3.04] Economy and Supply Trader (Trade MK3 II)

The place to discuss scripting and game modifications for X³: Reunion.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

jlehtone
Posts: 22559
Joined: Sat, 23. Apr 05, 21:42
x4

Post by jlehtone »

BDelacroix wrote:Once, however, I noticed a problem. In the mail message I received, I had an EST attacked by a random Xenon ship. He announced he was escaping. Where he decided to escape to? Xenon sector 589 or some such. Kind of stupid. The end result was obvious.
But did it actually enter 598 and die there? Or was it killed by the original attacker?
Goner Pancake Protector X
Insanity included at no extra charge.
There is no Box. I am the sand.
spoidz
Posts: 607
Joined: Sat, 6. Mar 04, 20:43
x3tc

Post by spoidz »

BDelacroix,

Also did he have enough e-cells to jump out? I had to tweak with my ESTs at first to get them to increase their reserve w/o selling down to 40 all the time.
JMCorp
Posts: 1452
Joined: Thu, 21. Apr 05, 21:48
x4

Post by JMCorp »

so, when does this get put in the next bonus pack?
BDelacroix
Posts: 213
Joined: Sun, 26. Feb 06, 04:30
x3tc

Post by BDelacroix »

I don't know how many cells he had. He did die in the sector. I hadn't gone there at all yet until I saw the message then entered just to see why he chose to escape to xenon station in that sector.

He's been replaced now )
Sinnerman49
Posts: 108
Joined: Thu, 20. Sep 07, 17:00
x3

Post by Sinnerman49 »

Anyone mind telling me how I read/write to the "Company Server" which is apparantly Logfile 8005.....



Anyone?
spoidz
Posts: 607
Joined: Sat, 6. Mar 04, 20:43
x3tc

Post by spoidz »

Sorry I haven't use it but its "seems" pretty straightforward.
Input - {6} {X} {Y}
The pilot copies his ware list to Company server or reads it from there. (X = 0 to 9, List storage slot; Y = 0, Get list from server; Y = 1, Save list to server)
It looks like it only copies his ware list. You can have up to 10 lists (either per pilot or ten global lists, not clear on that). And you can write with Y=0 and read with Y=1

All of these commands are triple prompt meaning you will be asked for the first number and then the X and then the Y.

The way it reads is you could build 10 different ware lists (per pilot/global) and then when you want to quickly change out his wares, or add a new EST, just have him read the list you want.

Since the only option is which list (X). The list the pilot you use it on is what gets written.

Would save a lot of time than manually adding/deleting wares (after setting up the initial lists).

My 2cents anyway
Sinnerman49
Posts: 108
Joined: Thu, 20. Sep 07, 17:00
x3

Post by Sinnerman49 »

It also records all the transaction data to the server, which is why I want to access it - to see what trades my EST has been doing.
JMCorp
Posts: 1452
Joined: Thu, 21. Apr 05, 21:48
x4

Post by JMCorp »

Mark_Arac wrote:Okay, I rolled back to 3200, and so far it seems to be working fine. If other people are running 3205 without a hitch, I really wish I knew what was causing this, since I already tried a clean install + bonus pack + 3205.
i'm having the same problem with 3205. same jump center of null with greater profit jumps message.
spoidz
Posts: 607
Joined: Sat, 6. Mar 04, 20:43
x3tc

Post by spoidz »

Sinnerman49,

Okay, sorry, that's a diff switch I didn't remember.
Input - {0} {4} {X}
The pilot logs the transaction data of every transaction to the company server. (Logfile 8005). (X = 0 deactivate; X = 1 activate)
The pilot keeps limited radio silence. (X = 2, off/verbose; X = 3, on/silent)
Just reading it though it only shows a on or off. If it builds a log file, those are just text files you should be able to read in any text editor. From the reading that X=2 sounds like it may send it your incoming messages also.

Have you looked inside of it with a simple editor?
JMCorp
Posts: 1452
Joined: Thu, 21. Apr 05, 21:48
x4

Post by JMCorp »

ok some more information for the problem where the pilot just sits on standby:

i did some tests to try to determine the source, what i came up with is it's probably in the libraries somewhere, not the script itself.

started at 3205 and rolled back to 3204, 3203,3202,3201,and then finally gave up when i got to 3200 and still have the same problem.

the game is a relatively early, like game day 1 hour 12 save.
i have clean install 2.0.02 + bonus pack.
i have script editor and non script editor versions tested.
game was unmodified in any way (IE: there was no modified tag!) before adding this script.

test scenario:
purchase (remote or in sector doesnt matter) a caiman from family pride.
add trade mk2 and nav com.
go into additional ship commands and ask for a report.

pilot sends back a report that reads:
My commercial center with Family Pride jumps is Null

starting the trader with or without wares does not change this. he still wont move most likely because he thinks he cant figure out how many jumps he has.

some background on my trade empire in this game in case it helps:
personal ship: mamba raider
3 caimans on MORT duty, one Caiman a superfreighter.
1 Bunny Mineral collecter from the bonus pack collecting silicon in rhonkar's clouds.
4 Jaguar raiders scouting
and a TS hauler of some make or other that i captured sitting in a trading station.

that's it, no stations and no other ships.
jlehtone
Posts: 22559
Joined: Sat, 23. Apr 05, 21:42
x4

Post by jlehtone »

@spoidz&Sinnerman49:
The {0}{4}{X} toggles two independent flags.
The first (0/1) flag determines if the script writes to logfile (in X3 folder).
The second flag (2/3) can turn off those "Hi, I'm now <level>."-messages to not clutter the player log so much.

@JMCorp:
Did you start the trader before asking for report? (I assume you did, but ...)
Goner Pancake Protector X
Insanity included at no extra charge.
There is no Box. I am the sand.
spoidz
Posts: 607
Joined: Sat, 6. Mar 04, 20:43
x3tc

Post by spoidz »

JMCorp,

At least for me, I can run 3200 no problems, it's only upgrading that kills mine. I was also able to remove 3205, reinstall 3200 and get my 3200 saves to work again.

I'd also like to get this figured out, although, if that is a new EST you have, he can't use a Jump Drive until FP 2nd Class anyway. Would he still try to calculate jump range if he can't use it?

And I just checked, I have 8 EST full FP doing fine and jumping with 20 Jump range set manual. And they ALL still say "jumps is NULL".
jlehtone
Posts: 22559
Joined: Sat, 23. Apr 05, 21:42
x4

Post by jlehtone »

NULL ... the script generates the message by combining strings from the language file with values from parameters much like the printf/fprintf family of C-functions. So those strings have '%s' where values get placed into.

What happens if count of '%s' in strings does not match the count of values that the script attempts to put in?

(Earlier version of signed CLS Mk2 english language file lacked one '%s' and the report of Mk2 did not show all values.)
JMCorp
Posts: 1452
Joined: Thu, 21. Apr 05, 21:48
x4

Post by JMCorp »

jlehtone wrote:@JMCorp:
Did you start the trader before asking for report? (I assume you did, but ...)
i tried all variations my friend.

i was doing it with the whole pick a ware, pick a sector and then he goes into standby. then i ask for a report and see the message i reported. sector didn't matter ware didnt matter, i got the same effect.

then i started doing both. i didn't say that in my troubleshooting post, but i was doing both. asking for a config, and then starting him, and starting him and asking for a config.

alot of folks are saying they rolled back to 3200

the important difference is my computer crashed (my own fault, risk of being the IT guy's computer) and i had to re-install the OS and x3 and i decided to restart at the same time. so the game i am working with never had a working EST or libraries or whatever. i'm working with a clean install and it never worked, no version, ever. all i did was download the script, the libraries, and try to use it.


so all you guys who want to see what i'm talking about, make a clean install of x3 with no scripts or mods. install the bonus pack. start a new game and script in a bit of cash if you need to. install EST. try to start him anywhere in the universe.
jlehtone
Posts: 22559
Joined: Sat, 23. Apr 05, 21:42
x4

Post by jlehtone »

Start of new game? And you have trade rank of at least 'Trader'?

One can always activate Script Editor, enable debugging on the ship, run the command, and then see from the debug output the points in the script code that cause the unwanted behaviour.

Perhaps a PM to Lucike? He probably does not check this thread very often.
Goner Pancake Protector X
Insanity included at no extra charge.
There is no Box. I am the sand.
JMCorp
Posts: 1452
Joined: Thu, 21. Apr 05, 21:48
x4

Post by JMCorp »

jlehtone wrote:Start of new game? And you have trade rank of at least 'Trader'?
Well as i said in an earlier post the game is not exactly new, but its the only game i have on this new x3 install, it's a clean *unmodified* savegame, and game time was only 1 day 12 hours at the time of testing. i do have trader, or the command wouldn't be available.
User avatar
Lucike
Posts: 12969
Joined: Sun, 9. May 04, 21:26
x4

Post by Lucike »

@JMCorp

Test it again with version 3.2.06
JMCorp
Posts: 1452
Joined: Thu, 21. Apr 05, 21:48
x4

Post by JMCorp »

Lucike wrote:@JMCorp

Test it again with version 3.2.06
OK thanks Lucike. that fixed the text bug, now i have another one for you.

my traders are all apprentices, and their jump range is stuck at 0 not 1 like the read me says. so they will not trade in adjacent sectors. that may be why they all went on standby. seeing the 0 jumps in the message i tried to start one in a sector like empires edge and he promptly started trading energy cells locally.

i was trying to get him to move flowers from spaceweed drift to greater profit. but he kept going on standby.

now i have a trader in cho's defeat that wont move energy cells out of that sector, the solar power plants are full and two stations in tharka's sun with a high demand.

i also have placed the trader that was set for flowers before into profit share on ecell duty and he's not moving energy cells around. and there's plenty of supply and demand within one jump.

they're definitely not checking adjacent sectors at apprentice.
Lucike wrote: Apprentice
The apprentice trades one ware in indicated sector and the adjacent sectors, which are one jump away. The apprentice is carrying out his probationary period in your enterprise and doesn't get a salary during this time.
*EDIT*
i took my only freight pilot off my one station and put him on duty as an EST, and can not change his jump range. he's stuck at 0 jumps like the apprentices.
User avatar
Lucike
Posts: 12969
Joined: Sun, 9. May 04, 21:26
x4

Post by Lucike »

@JMCorp

You can't change the jump range?
Lucike wrote:Input - {2} {1} {X}
The pilot operates within jump range of X from homesector. The maximum jumps is limited by pilot level. (X = 0-20)
JMCorp
Posts: 1452
Joined: Thu, 21. Apr 05, 21:48
x4

Post by JMCorp »

Lucike wrote:@JMCorp

You can't change the jump range?
Lucike wrote:Input - {2} {1} {X}
The pilot operates within jump range of X from homesector. The maximum jumps is limited by pilot level. (X = 0-20)
that is correct. i go into configuration, type 2 hit enter type 1 hit enter and hit any number above 0 and hit enter

then i go into configuration and do 0,0,0 to get a report and he says the jumps are still 0. this is a freight pilot by the way. i got my CAG from a station to try this on.

i let him get to the sector and try to start trading and he did the same thing everyone else did. he just sat there on standby.

*edit*
and yes before you ask, i did make sure i was doing that in the EST configuration and not the CAG configuration...

Return to “X³: Reunion - Scripts and Modding”