Author Topic: FOnline SDK - Question  (Read 165727 times)

Re: FOnline SDK - Question
« Reply #60 on: December 26, 2010, 05:47:40 pm »
How do i change the replication time?

JovankaB

  • Guest
Re: FOnline SDK - Question
« Reply #61 on: December 26, 2010, 06:26:37 pm »
How do i change the replication time?

There is a function called "SetReplicationTime" in replication.fos file, and the line to change is:
Code: [Select]
if(cr.IsPlayer()) replTime=3; // 3 minutes
Why they don't set player's Stat[ST_REPLICATION_TIME] in some "player init" function and instead they set the value every time a player dies?
It's a mystery :)
« Last Edit: December 26, 2010, 07:00:36 pm by JovankaB »

Re: FOnline SDK - Question
« Reply #62 on: December 26, 2010, 07:19:12 pm »
Tell me about it. Btw thx JovankaB

EDIT: Another question.My friend joined my server.We played for a while now then he disconected to change comabt to TB now he cant connect.Why? And also i tried disable the Bounty Hunters but after that server wont load script.I tried disable script from script.cfg but its the same story.

Thx in advance.
« Last Edit: December 26, 2010, 07:22:19 pm by raynor009 »

JovankaB

  • Guest
Re: FOnline SDK - Question
« Reply #63 on: December 26, 2010, 11:24:55 pm »
Maybe your friend changed server port, I don't know...
And about the bounty hunters script, there is no error message in server log? If you messed up something in the scripts, there should be some info :)

Re: FOnline SDK - Question
« Reply #64 on: December 27, 2010, 10:25:27 am »
[00:055] FOnline server, version 0393-9F.
[00:926] ***   Starting initialization   ****
[00:933] Script system initialization...
[00:958] Reload scripts...
[01:481] Script message: town_supply : Error : Unexpected token '{' : 34, 1.
[01:483] Script::LoadScript - Unable to Build module<town_supply>.
[01:483] Load module fail, name<town_supply>.
[02:358] Script::BindImportedFunctions - Fail to bind imported functions, module<main>, error<-19>.
[02:381] Reload scripts fail.

If i try to disable B Hunters.Cant i just change the time for them.If yes wher should i look?
« Last Edit: December 27, 2010, 10:27:48 am by raynor009 »

JovankaB

  • Guest
Re: FOnline SDK - Question
« Reply #65 on: December 27, 2010, 01:13:44 pm »
You messed up something in town_supply.fos, I would just redownload the file from repository.
Then simply add return; in the beginning of the CallTownSupply function:


void CallTownSupply(Critter& victim, Critter& hostile) // Export
{
   return; // town supply disabled, remove this line to enable it again

   if(IsValidForSupply(victim,hostile))
   {
      uint[] values={victim.Id,hostile.Id,0};
      ::CreateTimeEvent(__FullSecond+SUPPLY_TIME,"e_CallTownSupply",values,true);
   }
}


This will stop the town supply function before it does anything.

If you prefer to change the time when the supply comes, you have to modify this line in town_supply.fos:

#define SUPPLY_TIME               (Random(REAL_MINUTE(5),REAL_MINUTE(60)))

It means the time is random in a range between 5 and 60 minutes. So to change it, simply change the numbers.
« Last Edit: December 27, 2010, 01:20:45 pm by JovankaB »

Re: FOnline SDK - Question
« Reply #66 on: December 27, 2010, 05:00:27 pm »
Thank you again JovankaB you wer very helpfull again.

But i have one more question?

I enabled the 3D moddles all was great.But how do i enable the HEAD slot?

Re: FOnline SDK - Question
« Reply #67 on: December 27, 2010, 05:38:58 pm »
Thank you again JovankaB you wer very helpfull again.

But i have one more question?

I enabled the 3D moddles all was great.But how do i enable the HEAD slot?

Put // in _defines.fos before line
#define PLAYERS_3D_NO_HEAD     // No head slot

You can also disable vault suit to be default clothing on your toon by adding // in front of
#define PLAYERS_3D_VAULT_SUITE // Vault suite by default, not naked
Don't call me your brother
'cause I ain't your fucking brother.
We fell from different cunts,
and your skins an ugly color!

Re: FOnline SDK - Question
« Reply #68 on: December 27, 2010, 06:43:11 pm »
Thank you.But wher do i find the names for hats?And other helemts.I looked through itemsname file but i didnt see anything special.

Re: FOnline SDK - Question
« Reply #69 on: December 27, 2010, 07:54:56 pm »
I'm not sure if they are implemented in SDK. You have to ask someone who are dealing with it more than me. Any ideas anyone? Or just tell him how to add it.
Don't call me your brother
'cause I ain't your fucking brother.
We fell from different cunts,
and your skins an ugly color!

Re: FOnline SDK - Question
« Reply #70 on: January 04, 2011, 06:47:16 pm »
How can i make a server status like the one on the forum?

Offline Wipe

  • Rotator
  • Random is god
Re: FOnline SDK - Question
« Reply #71 on: January 04, 2011, 07:05:42 pm »
Games are meant to be created, not played...

Offline jan0s1k

  • If it bleeds we can kill it...
    • Chosen Soldiers
Re: FOnline SDK - Question
« Reply #72 on: January 04, 2011, 07:07:21 pm »
How can i make a server status like the one on the forum?
Quote from: cvet
For correct ping send 4 bytes to server - 0xFFFFFFFF, than receive 16 bytes, where 4 is current online, 4 bytes is uptime in seconds, others 8 is reserved. After server drop connection.
Quote
22:08:|52<@Ghosthack> Send 0xFFFFFFFF to server, it will respond with 16 bytes, where first 4 is current number online, 4 bytes is uptime in seconds, the other 8 is reserved.
You have to just write app in php or some other language ;)
btw, http://www.fonline.ru/forum/showthread.php?t=18181
Thanks to Misiolap, Oxplay and CptRookie for help with php :)



http://fodev.net/forum/index.php?topic=2351.msg19771#msg19771

You speedy bastard!


Re: FOnline SDK - Question
« Reply #73 on: January 04, 2011, 07:43:36 pm »
I dont want to make an aplication.I just want to make it PHP so it can get the statuts from website.

Offline jan0s1k

  • If it bleeds we can kill it...
    • Chosen Soldiers
Re: FOnline SDK - Question
« Reply #74 on: January 04, 2011, 07:59:00 pm »
I dont want to make an aplication.I just want to make it PHP so it can get the statuts from website.
Not only php works for making image, you can make it in any language (as I think), for example java, etc