[MD Script] Autonomous universe traders and prospector 0.51 ( > 4.0 X-Rebirth)

The place to discuss scripting and game modifications for X Rebirth.

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

JohnLukePicard
Posts: 190
Joined: Mon, 12. Jan 09, 18:33
x3tc

Post by JohnLukePicard »

vadiolive wrote:Hum Personal Minimiun and Maximun Budget to each Ship?
Ok i ask much but

Rahanas Container alot 1.000.000 min and max 20.000.000(why? URV usual around it)

But Rahanas Energy Dont need same ammount usual 1.000.000
Its good to trade only energy cell

Bulk need around 1.0000.0000 min and max 5.0000.0000
My Milestone this Week is to configurable the Unitrader via mainmenu. At first without any complicated ui. Just small dialogs.
vadiolive wrote: Liquid never use it
Can you explain what do you mean here?


Many Thanx,

JLP
Sparky Sparkycorp
Moderator (English)
Moderator (English)
Posts: 8074
Joined: Tue, 30. Mar 04, 12:28
x4

Post by Sparky Sparkycorp »

Hi There,

Finally finished plot so will try this today :)

Just wondering about Wrecksville...will my Traders try to jump there from within Albion? I imagine they would die horribly to the local station guns but I could be wrong.

Regards,
Sparks
Sparky Sparkycorp
Moderator (English)
Moderator (English)
Posts: 8074
Joined: Tue, 30. Mar 04, 12:28
x4

Re: [MD Script] Autonomous universe traders and prospector 0.28c wanted People for Testin

Post by Sparky Sparkycorp »

Hiya,

I'm enjoying using your mod, thanks. I shall do a proper test as described ASAP and reply after.

A quick English language suggestion:
"I found a deal. I want to buy ware..."
When it says "I negotiate poor amount of '104.486' (max offer: '21666').", is that "104-point-486" credits? If not, what does it mean? Thank you in advance.

Regards,
Sparks
JohnLukePicard
Posts: 190
Joined: Mon, 12. Jan 09, 18:33
x3tc

Re: [MD Script] Autonomous universe traders and prospector 0.28c wanted People for Testin

Post by JohnLukePicard »

Sparky Sparkycorp wrote:
A quick English language suggestion:
"I found a deal. I want to buy ware..."
ok thx
Sparky Sparkycorp wrote: When it says "I negotiate poor amount of '104.486' (max offer: '21666').", is that "104-point-486" credits? If not, what does it mean? Thank you in advance.
This mean the amount ware. (104 pieces)

I change this in the next revision.
I have found the script command to convert a float to int now :

For Scripters:

Code: Select all

($myvariable)i
Thx you
JohnLukePicard
Posts: 190
Joined: Mon, 12. Jan 09, 18:33
x3tc

Post by JohnLukePicard »

update
0.30
Config menü added
Features:
- Enable / disable log
- Range setting (zone / sector / cluster / ranged)
- Maximum budget settings
- Restraint of trade (trade with unknown / known / trading member)

Now there are more ways to influence its dealer, but also the combinations and thereby possibly existing error anymore.
Everything I have not tested it.


You must restart your trader with existing save. New variable and old variables changed
Last edited by JohnLukePicard on Fri, 20. Jun 14, 13:33, edited 1 time in total.
User avatar
YorrickVander
Posts: 2767
Joined: Tue, 29. Oct 13, 21:59
x4

Post by YorrickVander »

Mmm looks good :) May the testing commence!
X Rebirth - A Sirius Cybernetics Corporation Product

Split irritate visiting pilot with strange vocal patterns.
User avatar
YorrickVander
Posts: 2767
Joined: Tue, 29. Oct 13, 21:59
x4

Post by YorrickVander »

When setting range to galaxy, it still wants me to choose an area on the map.
X Rebirth - A Sirius Cybernetics Corporation Product

Split irritate visiting pilot with strange vocal patterns.
JohnLukePicard
Posts: 190
Joined: Mon, 12. Jan 09, 18:33
x3tc

Post by JohnLukePicard »

YorrickVander wrote:When setting range to galaxy, it still wants me to choose an area on the map.
I need allways a homezone. You can set the range of jumps after you start the trader. Call the trader again. You can set the Buy and Sell range separately for example

These Homezone is is the startpoint for a search cycle.
User avatar
YorrickVander
Posts: 2767
Joined: Tue, 29. Oct 13, 21:59
x4

Post by YorrickVander »

ah ok with you
X Rebirth - A Sirius Cybernetics Corporation Product

Split irritate visiting pilot with strange vocal patterns.
vadiolive
Posts: 337
Joined: Wed, 18. Dec 13, 04:36
x4

Post by vadiolive »

omg - now i need restart 100 ships :) ( jesus)

Please! - Back with Minimun Budget - i realy need open captain tab and transfer ammout after i tel to him start

Bug found : Need set galax range twince?

None yet problem with my old Miners ship

Sugest : Back with set budget after select start trade/mine
and default galaxy if player need he change manual
Plus - usual trade with our station make ship lost or error

After restart script - Dont sure if ship have priority to sell cargo
But i think work better with empty cargo (awalys i unload all stuffs after restart script)

I using
Send all ships join in my squad
Stop Trader in all ships
Start Trade in every ship and select galaxy - select keen chat
Open Info ship and select captain adjust curret budget to
1.000.000 credits

Now leave game around 20-30min to see if work
Since i backup my games if not work just rollback version

AT END -
Not find any deal - update all captains
Not Find Any Deal - Leave Savegame untouch - but update extension
Solution : RollBack Script and Save - wait next release
Last edited by vadiolive on Fri, 20. Jun 14, 21:11, edited 6 times in total.
JohnLukePicard
Posts: 190
Joined: Mon, 12. Jan 09, 18:33
x3tc

Post by JohnLukePicard »

Oh no :)
JohnLukePicard
Posts: 190
Joined: Mon, 12. Jan 09, 18:33
x3tc

Post by JohnLukePicard »

Update 0.31

- bugfixing and improvements of trader

no restart needed if you update from 0.30 to 0.31, else restart is needed
vadiolive
Posts: 337
Joined: Wed, 18. Dec 13, 04:36
x4

Post by vadiolive »

Well i going test with new fresh new game( i sum all my money in other save game and carry on)
User avatar
YorrickVander
Posts: 2767
Joined: Tue, 29. Oct 13, 21:59
x4

Post by YorrickVander »

in v0.3 and 0.31 :

Code: Select all

[General] ======================================
[=ERROR=] extensions\Unitrader\md\jlp_universe_trader.xml(15): Found event condition 'event_player_created', not allowed here!
[General] ======================================
at game start.
X Rebirth - A Sirius Cybernetics Corporation Product

Split irritate visiting pilot with strange vocal patterns.
User avatar
YorrickVander
Posts: 2767
Joined: Tue, 29. Oct 13, 21:59
x4

Post by YorrickVander »

0.31 with 2.20 :

I've tried to start a rahanas container ship to run as system trader with 600,000 starting cash and it cycles inbetween searching trades and wait. In the debug spew I see :

Code: Select all

[General] ======================================
[=ERROR=] Error in AI script jlp.unitrader.trading on entity 0x2482: Property lookup failed: $debugchance
* Expression: $debugchance
[General] ======================================
[General] ======================================
[=ERROR=] Error in AI script jlp.unitrader.trading on entity 0x2482: Property lookup failed: $maxbuy
* Expression: $maxbuy
[General] ======================================
[General] ======================================
[=ERROR=] Error in AI script jlp.unitrader.trading on entity 0x2482: Property lookup failed: $maxsell
* Expression: $maxsell
[General] ======================================
[General] ======================================
[=ERROR=] Error in AI script jlp.unitrader.trading on entity 0x2482: Property lookup failed: $minbuy
* Expression: $minbuy
[General] ======================================
[General] ======================================
[=ERROR=] Error in AI script jlp.unitrader.trading on entity 0x2482: Property lookup failed: $minsell
* Expression: $minsell
[General] ======================================
[General] ======================================
[=ERROR=] Error in AI script jlp.unitrader.trading on entity 0x2482: Property lookup failed: $debugchance
* Expression: $debugchance
[General] ======================================
[General] ======================================
[=ERROR=] Error in AI script jlp.unitrader.trading on entity 0x2482: Property lookup failed: $maxbuy
* Expression: $maxbuy
[General] ======================================
[General] ======================================
[=ERROR=] Error in AI script jlp.unitrader.trading on entity 0x2482: Property lookup failed: $maxsell
* Expression: $maxsell
[General] ======================================
[General] ======================================
[=ERROR=] Error in AI script jlp.unitrader.trading on entity 0x2482: Property lookup failed: $minbuy
* Expression: $minbuy
[General] ======================================
[General] ======================================
[=ERROR=] Error in AI script jlp.unitrader.trading on entity 0x2482: Property lookup failed: $minsell
* Expression: $minsell
[General] ======================================
[General] ======================================
[=ERROR=] Error in AI script jlp.unitrader.trade.findfreetraderun on entity 0x2482: Property lookup failed: $warelist.count
* Expression: $warelist.count
[General] ======================================
[General] ======================================
[=ERROR=] Error in AI script jlp.unitrader.trade.findfreetraderun on entity 0x2482: Property lookup failed: $warelist.count
* Expression: not $warelist.count or $filteredwarelist.count
[General] ======================================
[General] ======================================
[=ERROR=] Error in AI script jlp.unitrader.trade.findfreetraderun on entity 0x2482: Property lookup failed: $warelist.count
* Expression: $warelist.count
[General] ======================================
[General] ======================================
[=ERROR=] Error in AI script jlp.unitrader.trade.findfreetraderun on entity 0x2482: Property lookup failed: $warelist.count
* Expression: not $warelist.count or $filteredwarelist.count
[General] ======================================
[General] ======================================
[=ERROR=] Error in AI script jlp.unitrader.trade.findfreetraderun on entity 0x2482: Property lookup failed: $warelist.count
* Expression: $warelist.count
[General] ======================================
[General] ======================================
[=ERROR=] Error in AI script jlp.unitrader.trade.findfreetraderun on entity 0x2482: Property lookup failed: $warelist.count
* Expression: not $warelist.count or $filteredwarelist.count
[General] ======================================
[General] ======================================
[=ERROR=] Error in AI script jlp.unitrader.trade.findfreetraderun on entity 0x2482: Property lookup failed: $warelist.count
* Expression: $warelist.count
[General] ======================================
[General] ======================================
[=ERROR=] Error in AI script jlp.unitrader.trade.findfreetraderun on entity 0x2482: Property lookup failed: $warelist.count
* Expression: not $warelist.count or $filteredwarelist.count
[General] ======================================
[General] ======================================
[=ERROR=] Error in AI script jlp.unitrader.trade.findfreetraderun on entity 0x2482: Property lookup failed: $warelist.count
* Expression: $warelist.count
[General] ======================================
[General] ======================================
[=ERROR=] Error in AI script jlp.unitrader.trade.findfreetraderun on entity 0x2482: Property lookup failed: $warelist.count
* Expression: not $warelist.count or $filteredwarelist.count
[General] ======================================
[General] ======================================
[=ERROR=] Error in AI script jlp.unitrader.trade.findfreetraderun on entity 0x2482: Property lookup failed: $warelist.count
* Expression: $warelist.count
[General] ======================================
[General] ======================================
[=ERROR=] Error in AI script jlp.unitrader.trade.findfreetraderun on entity 0x2482: Property lookup failed: $warelist.count
* Expression: not $warelist.count or $filteredwarelist.count
[General] ======================================

X Rebirth - A Sirius Cybernetics Corporation Product

Split irritate visiting pilot with strange vocal patterns.
JohnLukePicard
Posts: 190
Joined: Mon, 12. Jan 09, 18:33
x3tc

Post by JohnLukePicard »

Update:
0.32
- change search trade with offeramount instead totalamount
- lookup variable failed of debugchance, bugfix minbuy, minsell, maxbuy, maxsell
- maybe
[=ERROR=] Error in AI script jlp.unitrader.trade.findfreetraderun on entity 0x2482: Property lookup failed: $warelist.count
* Expression: not $warelist.count or $filteredwarelist.count

I am at the moment very busy and i have not the password from github ready at the moment. So the description is not updated at github
JohnLukePicard
Posts: 190
Joined: Mon, 12. Jan 09, 18:33
x3tc

Post by JohnLukePicard »

Update
0.33
Bugfix
- empty warelist
User avatar
YorrickVander
Posts: 2767
Joined: Tue, 29. Oct 13, 21:59
x4

Post by YorrickVander »

Something appears to be wrong with adding the universe trader to bk menu :

https://docs.google.com/file/d/0BzGfezj ... Q4SW8/edit

This seems to happen on update to new version of universe trade, removing yours + bk's mods, resaving and reinstalling the both does not fix the issue.
X Rebirth - A Sirius Cybernetics Corporation Product

Split irritate visiting pilot with strange vocal patterns.
User avatar
YorrickVander
Posts: 2767
Joined: Tue, 29. Oct 13, 21:59
x4

Post by YorrickVander »

Next up. Maybe it's just me, but the ships don't appear to actually trade anymore :s No error spew, but my 2 test ships have failed to find any trade at all, although the low fuelled one did auto refuel as intended. My first est was a container rahanas in OL cluster wide trading, the second a container rahanas galaxy wode, with stuff already in hold. Both appear to stay in start zone cycling wait/searching and that's about all.
X Rebirth - A Sirius Cybernetics Corporation Product

Split irritate visiting pilot with strange vocal patterns.
User avatar
YorrickVander
Posts: 2767
Joined: Tue, 29. Oct 13, 21:59
x4

Post by YorrickVander »

Also note that the multiple uni trader entries remain with the mod uninstalled :s
X Rebirth - A Sirius Cybernetics Corporation Product

Split irritate visiting pilot with strange vocal patterns.

Return to “X Rebirth - Scripts and Modding”