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 - ninekorn

Pages: 1 ... 11 12 [13] 14
181
Modding info / Re: Scripting API issue missing a function?
« on: July 20, 2017, 01:45:39 am »
Hey AI-Enable. If youre still working could I know how to access items from "itemsInCargo = items.GetItemsAndCargo(shop_container_id)". This gives me an array of objects. but nowhere i can find in the scripts how to go get the difference shop sections like "boosters" "devices" "hulls" etc. When I write a for loop to try and get them i get [object object] and when i do a double for loop to iterate through itemsInCargo[g] I get nothing. again. thats probably my lack of knowledge of javascript but still theres no explanation for that in the Scripting API unless I just didnt find it. You see Im creating this market Terminal where players will be able to access every shops in each system the moment they access that terminal. Right now I can select systems then stations then I get the "main" station container i guess then I thought I would get the different sections of the shops with that GetItemsAndCargo function. But it just returns "object object" all the time. Once I get those items I will incorporate buy/sell for the player to buy items from the other side of the galaxy. Im not there yet.

something like:
Code: [Select]
"itemsInCargo = items.GetItemsAndCargo(shop_container_id)".

for (i = 0; i < itemsInCargo.length; i++)
{
       console.Print(itemsInCargo[i]+ " " + " SHOPCONTAINERID");
}
then i dont know what?

182
Modding info / Re: Scripting API issue missing a function?
« on: July 19, 2017, 10:45:49 pm »
wow. it works. ive never used this type of iteration in c#. I didnt knew it even existed in javascript. thank you. I can now move on to getting the containers of the station.

Thanks again! your experience at coding shows. Ok i found the button for quoting scripts.

183
Modding info / Re: Scripting API issue missing a function?
« on: July 19, 2017, 10:04:39 pm »
 mmm. still not working. Ill keep searching for a solution.             

                systemList = generator.GetAllSystems();

      for (var i = 0; i< systemList.length;i++)
      {
         if (game.GetSystemBases(systemList) == !/\S/
         || game.GetSystemBases(systemList) == null
         || game.GetSystemBases(systemList) == " "
         || game.GetSystemBases(systemList) == ""
         || game.GetSystemBases(systemList) == undefined
         || game.GetSystemBases(systemList) == "undefined")
         {
            var indexToRemove0 = systemList.indexOf(systemList); ---- with dual closing brackets with i of course.
            systemList.splice(indexToRemove0,1);
         }

         var tempBasesArray = game.GetSystemBases(systemList); ---- with dual closing brackets with i of course.
         if (tempBasesArray.length === 0 || tempBasesArray.length == 0)
         {
            var indexToRemove0 = systemList.indexOf(tempBasesArray);
            systemList.splice(indexToRemove0,1);
         }
      }


EDIT: so weird. I must be doing something wrong because its still not working with this.

for (var i = 0; i< systemList.length;i++)
      {
         if (game.GetSystemBases(systemList) == !/\S/
         || game.GetSystemBases(systemList) == null
         || game.GetSystemBases(systemList) == " "
         || game.GetSystemBases(systemList) == ""
         || game.GetSystemBases(systemList) == undefined
         || game.GetSystemBases(systemList) == "undefined")
         {
            var indexToRemove0 = systemList.indexOf(systemList);---- with dual closing brackets with i of course.
            systemList.splice(indexToRemove0,1);
         }

         var tempBasesArray = game.GetSystemBases(systemList);---- with dual closing brackets with i of course.

         console.Print(tempBasesArray.length + " " + " stationListArray");

         if (tempBasesArray.length === 0 || tempBasesArray.length == 0)
         {
            if (tempBasesArray == systemList)    ---- with dual closing brackets with i of course.
            {
               var indexToRemove0 = systemList.indexOf(systemList);---- with dual closing brackets with i of course.
               systemList.splice(indexToRemove0,1);         
            }         
         }
         
      }

184
Modding info / Re: Scripting API issue missing a function?
« on: July 19, 2017, 09:48:03 pm »
 i had tried it in the past but it didnt work for some reasons. weird. Ill try it again. maybe i had done a typo or something. Thank you for pointing the solution out.

185
Modding info / Re: Scripting API issue missing a function?
« on: July 19, 2017, 09:17:44 pm »
I've still got a problem trying to remove from the array all systems that have no stations. I know this is more related to Scripting knowlege but if you can help. It's for a new mod. So I have tried a lot of different functions and this one seems to almost be working but doesnt remove some systems that have no stations. I don't really understand why.

i could also put in game.GetSystemBases(systemList) != null && game.GetSystemBases(systemList) != undefined
it seems that the systems that have no stations are still logged as strings or something Inside the game.GetSystemBases function. its just weird. Im gonna keep trying some stuff but if anyones got any ideas I might be able to release this mod tonight. I gotta work hard though. Theres lots of stuff left to do in it.

                 for (var i = 0; i< systemList.length;i++)
      {
         if (game.GetSystemBases(systemList) == !/\S/)
         {
            var indexToRemove0 = systemList.indexOf(systemList);
            systemList.splice(indexToRemove0,1);
         }
      }

Edit: I tried
    game.GetSystemBases(systemList) == !/\S/
|| game.GetSystemBases(systemList) !=null
|| game.GetSystemBases(systemList) != " "
|| game.GetSystemBases(systemList) != "" 

but still got systems that are not beeing remove from the splice Method. Im still searching.


186
Modding info / Re: Scripting API issue missing a function?
« on: July 19, 2017, 02:13:10 am »
ok I will definitely look into it

187
Modding info / Re: Scripting API issue missing a function?
« on: July 19, 2017, 02:07:04 am »
wow Notepad++ is powerful. I found itérations of items.GetStationShopContainer Id in the StarTrek mod files package. I will look into it! Thank you very much for this hint i know what tool to use now to search. I was typing ctrl+F Inside each script lol much needed upgrade ;D

188
Modding info / Re: Scripting API issue missing a function?
« on: July 19, 2017, 01:54:53 am »
nope still not working. I got my systems/stations but i cant get the shop sections. trying to figure it out right now.

Im wondering if I should get the list of items from the station first then get their containerID but still i didnt figure out how to do that either. Im searching now for

GetItemsAndCargo() but that one doesnt work either... Like you say im probably using the wrong scope but i didnt knew I had to use a scope for those. hmmm. im gonna try that right now lol its because that wiki "item" page lacks the examples haha. I couldnt find any scripts which uses those 2 functions either to show me how its done  ;D

189
Modding info / Re: Scripting API issue missing a function?
« on: July 19, 2017, 01:33:51 am »
thank you!

190
Modding info / Scripting API issue missing a function?
« on: July 19, 2017, 01:29:35 am »
Hi. just this little detail before I go sleep.

GetStationShopContainerId() is not working. is there another solution? i need the shop containers.

nine

191
Modding info / Re: Getting the name of Systems?
« on: July 18, 2017, 11:21:04 pm »
found it.

var systemInfo = generator.GetSystemByID(arrayOfSystemID);

gives all system info. then access it with systemInfo.name

nine

192
Modding info / Getting the name of Systems?
« on: July 18, 2017, 11:05:25 pm »
Hi,

How can I get the name of a system. While they are generated with "var id = generator.AddSystem(0, 0, "SystemName", 123)" they dont seem to be tags so is there a function in the API that is available for us to use?

Ive searched the Wiki API and couldnt find anything.

Thank you.
nine

193
Servers / Re: Testing new server. Please bare with me! SkyCemetery
« on: July 16, 2017, 01:28:32 pm »
Hi Acuru!

This will be (if the parts alltogether ever work- they are all used parts in very good condition though as stated in the adds- i didnt choose sellers with 0 reputation) a Modded server. I really want to take my time to choose the best mods around and make it a completely overhauled gameplay. Things are getting quite nice on my end with the Follower Mod and the Drone Mod.

If I ever am interested in your mod or parts of your mod I will definitely incorporate them and let you know. I will also give the credit to the Creator of the mod itself if I choose some parts or the whole mod!

194
Servers / Re: Testing new server. Please bare with me! SkyCemetery
« on: July 16, 2017, 06:24:08 am »
Ok so I bought server pieces from EBay. Im used to building my own computers but its gonna be the first time I build a server. So these are the specs that I chose:

4 x Opteron 12 cores = Total 48 cores --- http://www.ebay.com/itm/151657673560
Dell PowerEdge c6145 quad socket --- http://www.ebay.com/itm/391052116121
Hynix 64gb (16x4gb) ddr3 1333 ----- http://www.ebay.com/itm/322241125387
Rosewill rsv-z2600 black ----- http://www.ebay.com/itm/182548697276
HP 1200W powerSupply ----- http://vod.ebay.ca/vod/FetchOrderDetails?transid=1430640884014&itemid=332264066458&qu=1&ul_noapp=true

Missing the harddrive and missing the heatsinks... I might use my tiny 128gb KingstonSSD to test the server first when i receive it. I wasn't sure about the powersupply since it says its a refurbished model but anyway... I think this whole lot is better than my first thought of going with a HP Proliant DL585 with no ram and harddrives at 300$ + shipping 150$... Right now i am at 585$ without heatsinks. Those heatsinks are approx 25$ to 50$ for 4 so id end up at 585 + 150 or 200 = approx 800$... This is me choosing a server before choosing to buy a Oculus rift which is pretty much the same price new with the oculus touch included. I figured I love to program but If I want to test new stuff and use Unity3d with terrain generation tests I need something really powerfull and a Oculus Rift+touch wont really help me with that so. I wanna have a dedicated server thought for VoidExpanse. Im still not sure which OS im gonna use on this server. I was thinking maybe Ubuntu but im not really experimented with the "sudooooo" stuff.

What are your thoughts guys?
Oh by the way the pieces are ordered except the heatsinks.
nine




195
Mods / Drone Mod for VoidExpanse!
« on: July 16, 2017, 01:30:26 am »
Title: SC-Drone
Image: coming soon.
Author(s): ninekorn
Description: drones
Current Mod version: Beta V0.1
Game version: latest
Game mode: all
Versions:

V0.1: Détails coming soon!
https://www.youtube.com/watch?v=T-zxofNWXek


Pages: 1 ... 11 12 [13] 14