Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - ai_enabled

Pages: [1] 2 3 ... 62
1
Servers / Re: [EU][kG]kunix.org -PVE- / community server
« on: July 21, 2017, 07:56:38 am »
 2.0.1 is fine. No server-related changes were done.

2
Servers / Re: [EU][kG]kunix.org -PVE- / community server
« on: July 21, 2017, 04:48:39 am »
Just connected, works great! Thanks for running the server, kyokei!

3
Modding info / Re: Item/skill icon
« on: July 20, 2017, 09:38:23 pm »
Roboto for most text, Orbitron for headers, for some other cases Eurostile.

4
Modding info / Re: How to make item unavaible in shop
« on: July 20, 2017, 09:30:55 pm »
Try to set the price to 0.

5
Servers / Re: Suggested (minimal) hardware for server
« on: July 20, 2017, 07:35:02 am »
After launching the server connect to it and look into the server log to see the stats (reported every few seconds). It will display how much milliseconds it takes for a frame. Usually the server run on 40 FPS so every update should not exceed 25 ms. And load increases nearly linearly if more star systems are active (populated with online players) simultaneously. So 10 players in 10 different systems might be overwhelming for described server hardware, but 10 players in up to 3-4 systems should be handled very smoothly.

6
Servers / Re: Suggested (minimal) hardware for server
« on: July 20, 2017, 07:31:37 am »
One core, 1.6 GHz desktop-class Intel or AMD CPU (not Atom), 1 Gb - should be more than enough.
If IO is slow, world saving may take a few seconds.
Bottomline - almost any VM on Linux will be good.

7
Modding info / Re: Scripting API issue missing a function?
« on: July 20, 2017, 01:52:14 am »
There are no actual sections in the shop container - it simply contains items list. The sections are working as a simple filter on the client-side only - it knows all the items in the shop container but displays only those which belong to a selected section.
GetItemsAndCargo returns array of objects. Each object contains following fields:
int item_id
int quantity
string xml_id

Beware that cargo items are not usual items - they don't have ID's (always zero) - only xml_id and quantity. But that also helps to determine if item is cargo - just check if item_id == 0.

8
Modding info / Re: Scripting API issue missing a function?
« on: July 19, 2017, 10:39:02 pm »
UPD. So it was parser which removed i in square brackets. Ok, next time use BB code for your code as I mentioned below.

Proper code:
Code: [Select]
// remove all system IDs from systemList which don't have any spacestations
for (var index = 0; index < systemList.length; index++)
{
     var systemId = systemList[index];
     var systemBases = game.GetSystemBases(systemId);
     if (systemBases.length == 0)
     {
         systemList.splice(index, 1);
         index--;
     }
}

(index-- is very important here: after splice it will point to the next element, but on the next iteration it will move even further - so you will skip next element in array after splicing it... index-- solves this)

BTW, please use the "code" BB tag when posting code snippets.

9
Modding info / Re: Scripting API issue missing a function?
« on: July 19, 2017, 09:43:56 pm »
GetSystemBases() returns array.
In programming, if a method is expected to return an array, it must return an array even if it's empty. It could return null only in the case when it's explicitly mentioned about this in the method comment/description (but it's very rare and happens only if library highly optimized to reduce overhead as much as possible; usually it's cheap to return an empty array).

So it returns an empty array when there are no stations at the system. You need to simply check if the length of this array is zero.

10
Modding info / Re: Scripting API issue missing a function?
« on: July 19, 2017, 02:08:55 am »
Sure, I'm glad to help.
There is a good example of this function:
Code: [Select]
core\data\topics\fanatics\fanatics_quest_reputation.js
Line 362: var shop_container_id = items.GetStationShopContainerId(stationId);
(then an item added to this container).

11
Modding info / Re: Scripting API issue missing a function?
« on: July 19, 2017, 01:57:16 am »
I recommend using Notepad++ and its multi-file search feature (Ctrl+Shift+F, Find in files). Just configure it to search in the data folder and it will find you at least two usage examples of items.GetStationShopContainer Id

12
Modding info / Re: Scripting API issue missing a function?
« on: July 19, 2017, 01:48:32 am »
Does it work properly now?
Why did it not work properly before? I guess you used wrong scope ("station." instead of "items.")?

13
Modding info / Re: Scripting API issue missing a function?
« on: July 19, 2017, 01:31:01 am »
items.GetStationShopContainer Id(stationId)
- it should work fine.

14
Modding info / Re: Getting the name of Systems?
« on: July 19, 2017, 01:11:12 am »
I'm glad you found it :-).

15
Game discussion / Re: Future development of VoidExpanse
« on: July 18, 2017, 02:23:26 am »
We have actively supported and regularly improved the game for two years after the release on Steam.
Only patches with fixes are planned (currently there are only a few small issues and it's not worth to release a patch).
We're focused on CryoFall now.

Pages: [1] 2 3 ... 62