Menu

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.

Show posts Menu

Messages - p0ki

#46
General Discussions / Re: New game?
September 21, 2015, 01:29:21 AM
Quote from: Lurler on September 21, 2015, 12:34:10 AM


;)
The Launcher got an Update today. Now I have those fancy buttons on the lower left as well :P
Hmmm ... the picture looks a bit like a 2d plattformer, but we shouldn't be judging by the cover.
( HYPE HYPE HYPE )
#47
Servers / Re: [EU][kG]kunix.org -PVE- / community server
September 16, 2015, 11:34:16 AM
Quote from: kyokei on September 16, 2015, 11:21:12 AM
very awesome news, I'm getting annoyed with rebooting the kunix server :P
Could you set an automatic reboot at a specific time? Like 5am or something like that.
#48
Modding info / Re: Add Cargo by Device
September 16, 2015, 03:56:05 AM
Thanks, found it.
#49
Servers / Re: [EU][kG]kunix.org -PVE- / community server
September 16, 2015, 03:07:30 AM
Quote from: kyokei on August 28, 2015, 11:20:50 PM
Rebooted
Well, it's been almost 3 weeks. The server needs a reboot kyokei :)
Inventory got slushy, I can't really jetison my stuff. Thank you.
#50
Modding info / Add Cargo by Device
September 15, 2015, 01:47:09 PM
Hy there,
I learned that you can remove Cargo by this command:
ship.RemoveCargoByType(args.ship_id, "item_id", $amount);
But how do you add Cargo?
ship.AddCargoByType didn't do it.
ship.AddItemToStorage didn't do it.

So what do it? I just know the two it ...
... commands.
(I know that properly it would be "does" but if you get the reference, you are awesome)

Any help appreciated :)
#51
Modding info / Re: Cloaking Device?
September 14, 2015, 05:42:18 AM
You would also need to adjust the NPC Scripts, so they properly react to your cloak.
#52
Bug reports / Re: Party Bug
September 11, 2015, 03:29:44 AM
New events on this bug.
I can join the party but the display is a little wrong. Whatch the top left "hull asteria joined the party".
Also Fuseldusel is still Antonovus and it's not displayed on his side.

(http://www.picfront.org/d/9kge) (http://www.picfront.org/d/9kgf)

After this I removed everyone from the party and just invited p0kimon from p0ki,
which worked (even with correct names) and exp sharing was working as well.
#53
Modding info / Re: Compression
September 11, 2015, 02:09:48 AM
Thanks, I'll read the changelog carefully and adjust the mod once it's fixed :)
#54
Modding info / Compression
September 10, 2015, 12:20:03 PM
So I tried to make a dialog where you can trade 200 glepsite to 1 compressed glepsite.
But when I have 100 glepsite in my ship it works as well, I had to cramp up the checking amount to 400.
Now everything works as intended, but why is that?

<?php //php for the colors
using(npc);
include(
meta.js);
using(relations);
using(console);
using(ship);
using(generator);
using(game);
using(player);
using(storage);


function 
OnCheckRequirements()
{
var bp_npc_id topic.GetCurrentNpcShipId();

if (npc.GetTag(bp_npc_id"class") == "station.commander"//Every Station should do it.
{
return true;
}
return false;
}

function 
OnDialogue()
{
var input topic.GetInput();
    var 
state topic.GetState();

    var 
bp_npc_id topic.GetCurrentNpcShipId();

topic.AddTopic("generic_compress_glepsite");

if (state == 0)
{
if (input == NO_INPUT)
{
topic.AddPhrase($p001); // How much you want to compress?

topic.AddChoice(1$cyes1);
topic.AddChoice(2$cyes2);
topic.AddChoice(3$cyes3);
topic.AddChoice(4$cno);
topic.AddChoice(5$cwhat);
}
else if (input == 1)  // Compress 200
{
var hasCargo ship.HasCargoAmount(PLAYER_SHIP"ore_glepsite"400);
if (!hasCargo)
{
topic.AddPhrase($pmor);
topic.AddPhrase($pbye);
}
else 
{
topic.AddPhrase($p002); //Compressing...
ship.RemoveCargoByType(PLAYER_SHIP"ore_glepsite"200);
ship.AddItemToStorage(PLAYER_SHIP"ore_glepsite1"1);
topic.AddPhrase($pdon);
topic.AddPhrase($paga);

topic.AddChoice(1$cyes);
topic.AddChoice(4$cno);
}
}
else if (input == 2)  // Compress 2.000
{
var hasCargo ship.HasCargoAmount(PLAYER_SHIP"ore_glepsite"4000);
var hasCargo1 ship.HasCargoAmount(PLAYER_SHIP"ore_glepsite1"20);
if (!hasCargo)
{
if (!hasCargo1)
{
topic.AddPhrase($pmor);
topic.AddPhrase($pbye);
}
else
{
topic.AddPhrase($p002); //Compressing...
ship.RemoveCargoByType(PLAYER_SHIP"ore_glepsite1"10);
ship.AddItemToStorage(PLAYER_SHIP"ore_glepsite2"1);
topic.AddPhrase($pdon);
topic.AddPhrase($paga);

topic.AddChoice(2$cyes);
topic.AddChoice(4$cno);
}
}
else 
{
topic.AddPhrase($p002); //Compressing...
ship.RemoveCargoByType(PLAYER_SHIP"ore_glepsite"2000);
ship.AddItemToStorage(PLAYER_SHIP"ore_glepsite2"1);
topic.AddPhrase($pdon);
topic.AddPhrase($paga);

topic.AddChoice(2$cyes);
topic.AddChoice(4$cno);
}
}
else if (input == 3)  // Compress 10.000
{
var hasCargo ship.HasCargoAmount(PLAYER_SHIP"ore_glepsite"20000);
var hasCargo1 ship.HasCargoAmount(PLAYER_SHIP"ore_glepsite1"100);
var hasCargo2 ship.HasCargoAmount(PLAYER_SHIP"ore_glepsite2"10);
if (!hasCargo)
{
if (!hasCargo1)
{
if (!hasCargo2)
{
topic.AddPhrase($pmor);
topic.AddPhrase($pbye);
}
else
{
topic.AddPhrase($p002); //Compressing...
ship.RemoveCargoByType(PLAYER_SHIP"ore_glepsite2"5);
ship.AddItemToStorage(PLAYER_SHIP"ore_glepsite3"1);
topic.AddPhrase($pdon);
topic.AddPhrase($paga);

topic.AddChoice(3$cyes);
topic.AddChoice(4$cno);
}
}
else
{
topic.AddPhrase($p002); //Compressing...
ship.RemoveCargoByType(PLAYER_SHIP"ore_glepsite1"50);
ship.AddItemToStorage(PLAYER_SHIP"ore_glepsite3"1);
topic.AddPhrase($pdon);
topic.AddPhrase($paga);

topic.AddChoice(3$cyes);
topic.AddChoice(4$cno);
}
}
else 
{
topic.AddPhrase($p002); //Compressing...
ship.RemoveCargoByType(PLAYER_SHIP"ore_glepsite"10000);
ship.AddItemToStorage(PLAYER_SHIP"ore_glepsite3"1);
topic.AddPhrase($pdon);
topic.AddPhrase($paga);

topic.AddChoice(3$cyes);
topic.AddChoice(4$cno);
}
}
else if (input == 4)
{
topic.AddPhrase($pbye);
}
else if (input == 5)
{
topic.AddPhrase($pex1);
topic.AddPhrase($pex2);

topic.AddChoice(1$cyes1);
topic.AddChoice(2$cyes2);
topic.AddChoice(3$cyes3);
topic.AddChoice(4$cno);
}
}

}
#55
Help section / Re: Query port
September 10, 2015, 01:35:14 AM
What is a query port and how can you use it?
Do you want to display server information on a website or something like that?
#56
Modding info / Re: Cloaking Device?
September 10, 2015, 01:33:42 AM
Didn't we have the whole cloaking discussion before (http://forums.atomictorch.com/index.php?topic=793.0)?
#57
Bug reports / Re: Garbage Collection gets huge
September 09, 2015, 12:34:06 PM
Quote from: ai_enabled on September 09, 2015, 01:24:42 AM
Thanks for the logs. Could you restart the server (loading current world savegame), let it run for a few hours and upload the log file?
Sure, here it is:
https://www.dropbox.com/s/houo5xk9r2y2kwe/Server_VoidExpanse_2015-09-09_20-05.rar?dl=0

Also during this run I had problems with the autopilot which I haven't had before. It was always shuffling to the side even though there was no debris in the way.
Odd, but not the reason I posted this ;)
#58
Bug reports / Garbage Collection gets huge
September 08, 2015, 05:41:06 AM
Quote from: kyokei on August 27, 2015, 08:58:46 AM
Using mono to launch the server doesn't make it crash but I noticed that after a while the garbage collection hits above 1k and then you get the symptoms p0ki said. Server becomes choppy and sluggish until a restart of the VE server is done.
I have the same problem and would like to contribute with my logfiles.

Garbage collection starts at 215 MB and goes to 662 MB within 6 days.
https://www.dropbox.com/s/exf1o9ccvv74kte/Server_VoidExpanse_2015-08-28_23-03.rar

The server didn't stall like kyokei, but it sure is noticeable. How much garbage is considered normal?
#59
Help section / Re: Dedicated Server Inaccessible.
September 07, 2015, 11:56:06 PM
Quote from: frizzank on September 07, 2015, 10:10:27 PM
...cant join it from the main public server list.
...can join the lan version by inputting the IP address
Are you sure about your firewall? It seems that connecting to Internet IP's is disallowed.
Can you join other servers on the internet?

/edit: Can someone split the last 3 posts to an own thread, since these are different problems?
#60
Modding info / Re: How do Generators work?
September 03, 2015, 06:25:27 AM
Hmm... within Core\data\scripts\CalculateShip.js I found this line:
<?php // I write php to colour the text
var fuel_consumption ship.GetFinalCacheValue(ship_id"fuel_consumption_generator") / 60.0 timeMultiplier coef;
            if (
fuel_consumption 0.0001)
            {
                
ship.SetCurrentValueDelta(ship_id"fuel", -fuel_consumption);
            }

"timeMultiplier" only gets into the equasion to recalculate frames,
"coef" only gets into the equasion if there is more energy generated then can be used,
so we are going to ignore those two.

I understand that this calculation is called every frame (which are 60 per second), to get to our desired fuel_consumption per second we just need to multiply by 60. Clearing all that from the equasion we get this:
<?php // I write php to colour the text
var fuel_consumption ship.GetFinalCacheValue(ship_id"fuel_consumption_generator")

Snippet from generator_dark_energy.xml
<?php // I write php to colour the text
<effect>
<effect_type>fuel_consumption_generator_value</effect_type>
<effect_base>150</effect_base>
</effect>

So fuel_consumption should be 150 per second. (Seems much doesn't it?)
Going with these numbers the dimensional fueltank can last 16,6 seconds.

Clearly I made a mistake or the "SetCurrentValueDelta" function holds a secret I cannot unravel.
Could you help me with this one more time, please?