trade failed with reasoncode 65536

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

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

jth
Posts: 296
Joined: Tue, 3. Jan 06, 23:31
x3

trade failed with reasoncode 65536

Post by jth »

[=ERROR=] 1859648.43 Error in AI script trade.performtraderun on entity 0x8349fd: TradeID 58000: trade 5282 Chemical Compounds between Rahanas (Container & Energy) 4 and Techno-Complex I failed with reasoncode 65536 (0x10000 - 0000000000000010000000000000000b)!

Any ideas on why or how I track down the cause ?

The Techno Complex is managing to get wares from other ships OK

jth
UniTrader
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 14571
Joined: Sun, 20. Nov 05, 22:45
x4

Post by UniTrader »

not sure what is reason 65536, but you can exclude the following:


error 32 - Buyer has not enough money (known issue)
error 64 - Seller has not enough goods (known issue if unbundle = true)
error 128 - Buyer has not enough cargo space
error 256 - MinAmount > Amount

i think 512 was no offer, but not entirely sure.. and also i think i never encontered an error id this high (al the lower ones though, but dont remember their meaning since the related bugs in my scripts are long fixed by now)
if not stated otherwise everything i post is licensed under WTFPL

Ich mache keine S&M-Auftragsarbeiten, aber wenn es fragen gibt wie man etwas umsetzen kann helfe ich gerne weiter ;)

I wont do Script&Mod Request work, but if there are questions how to do something i will GLaDly help ;)
jth
Posts: 296
Joined: Tue, 3. Jan 06, 23:31
x3

Post by jth »

My guess is that reasoncode 65536 is probably the catch all for "unknown error"

I really need to know why this is happening.

Should I just enable the debugging in trade.performtraderun and work my way from there ?

jth
jth
Posts: 296
Joined: Tue, 3. Jan 06, 23:31
x3

Post by jth »

Found it :)

I added the ship to my squad and then tried to add the same trade and it wouldn't let me with

Neither trade partner has any Cargolifter URVs avalable.

Thanks for being a useful sounding board

jth

Return to “X Rebirth - Scripts and Modding”