24410 Posts in 4116 Topics - by 8894 Members - Latest Member: Asekhan

Recent Posts

Pages: [1] 2 3 ... 10
1
Mods / Re: [MOD] [OOSP]out of sector Production
« Last post by joemorin73 on Today at 12:50:49 AM »
Perhaps there is one more feature you could make.  With your knowledge, could you make a mod that would restock the Trade Equipment after certain amount of time?
2
Bugs / Re: problem with (broadcast-)invokeClientfunction
« Last post by Laserzwei on February 20, 2018, 11:30:12 PM »
Thanks for reporting! This looks like there's something weird going on in the reading of tables from lua. Should be fixed soon!
Nice! Thank you
3
Bugs / Re: problem with (broadcast-)invokeClientfunction
« Last post by koonschi on February 20, 2018, 11:23:57 PM »
Thanks for reporting! This looks like there's something weird going on in the reading of tables from lua. Should be fixed soon!
4
Mods / Re: [MOD][BiB-R] Civil Turret & Fighter Range
« Last post by T4Ken on February 20, 2018, 10:52:48 PM »
data/scripts/lib/fightergenerator.lua:56: 'end' expected (to close 'function' at line 17) near 'local'

reported Bug
5
Bugs / Re: Cargo drones have the wrong WeaponCategory
« Last post by Laserzwei on February 20, 2018, 10:50:26 PM »
combat-fighters, miners and salvagers are recognised correctly, fighters with healing beams not tested, and cargo-fighters are recognized wrongly as Armed. Probably because there is no Cargo-Enum
6
Bugs / Re: Cargo drones have the wrong WeaponCategory
« Last post by Hammelpilaw on February 20, 2018, 10:10:37 PM »
Good to know. Values for Salvagers and miners are correct? Or bugged too? I don't know wich values would be correct.
7
Bugs / Re: Cargo drones have the wrong WeaponCategory
« Last post by Laserzwei on February 20, 2018, 09:58:38 PM »
awesome I will test that
Edit: tested it in a new 0.16 Galaxy, Hangar():getSquadMainWeaponCategory() will return 0(=WeaponCategory.Armed) for a cargo-fighters only squad. (and 1 for miners and 2 for salvagers)
So this bug is still here
8
Bugs / Re: Cargo drones have the wrong WeaponCategory
« Last post by Hammelpilaw on February 20, 2018, 09:56:35 PM »
All unarmed fighters and weapons, that were built before the update 0.16.0, are broken. If you build new ones I think it should work.
9
Bugs / problem with (broadcast-)invokeClientfunction
« Last post by Laserzwei on February 20, 2018, 09:55:36 PM »
When using either broadcastInvokeClientFunction or invokeClientFunction and sending tables as payload, there can occur the following crash:
Quote
2018-02-17 16-48-26| could not execute function 'send' in '"mods/invtest/new.lua"':
2018-02-17 16-48-26| stof
2018-02-17 16-48-26|     [C]:-1: in function invokeClientFunction
2018-02-17 16-48-26|     mods/invtest/new.lua:23: in function ?
2018-02-17 16-48-26| Setting state to invalid.
The error is reproducable in 0.16 and 0.15.8 (not tested earlier, but most likely also present there).
Affected are all lists, where string- AND number-keys are used. Specifically only if these "mixed keys" are used in the very same list- Having a string-key only list with a nested number-key list is totally fine. Having a mixed-keys list somewhere nested within the payload will throw said error.

lists that are fine (divided by underscores):
Code: [Select]
li[1] = 1
li[2] =  "a"
________________
li[1] = 1
li[20] = "a"
________________
li[1] = 1
li[math.huge] = "a"
________________
li[1] = 1
li["2"] = "a"
________________
{1,2,{vec3(4,5,6), vec2(1,2)}, "test", ["10"]=1}

lists that don't work:
Code: [Select]
data[1] = {["name"] = "Name1", [1] = 2}
data[2] = {["name"] = "Name2", [2] = 2}
________________
data[1] = 1
data["a"] = "b"

While testing some of the lists I noticed a 2nd most likely related unexpected behaviour/bug:
When sending:
Code: [Select]
li[1] = 1
li[20] = 2
li["4"] = 3
The client will not receive      li["4"]

When sending:
Code: [Select]
li[1] = 1
li["4"] = 3
li[20] = 2
the client will receive:
Quote
li[1] = 1
li[4] = 2
li[20] is missing and li[4] has the wrong value!
There is some serious weirdness going on

10
Bugs / Cargo drones have the wrong WeaponCategory
« Last post by Laserzwei on February 20, 2018, 09:38:14 PM »
When using Hangar():getSquadMainWeaponCategory(squad) on a cargo fighter squad it will return WeaponCategory.Armed.    For the unarmed drones
Pages: [1] 2 3 ... 10