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

Re: FOnline SDK - Question
« Reply #255 on: June 27, 2012, 08:05:54 am »
That's about what I figured.  I'll see what I can't cook up.  Thanks.

ETA -
Ok, spent a few hours on it with no luck.  I'm a little surprised that there isn't documentation anywhere on this.  I can't get a script to bind in the Script/Module in the Object Editor for some reason.  Tomorrow I'll try it another way...
No idea why you want to bind script to car, you just need to set in locations.cfg to all enc maps geck_visible=0, and in script which processing entering to encounters add lines to setknownloc for car driver, you can also process entering with car in map init scripts. 

Re: FOnline SDK - Question
« Reply #256 on: September 20, 2012, 12:20:54 pm »
So how can I get Enemies and everything else run in real time? they only seem to walk for me.

Re: FOnline SDK - Question
« Reply #257 on: September 20, 2012, 03:35:39 pm »
Modifying  a code in a file named 'npc_planes.fos'.

Re: FOnline SDK - Question
« Reply #258 on: September 21, 2012, 09:28:36 am »
Ok I am hopeless can anyone head my in the right direction?

Re: FOnline SDK - Question
« Reply #259 on: September 21, 2012, 09:38:38 am »
Modifying  a code in a file named 'npc_planes.fos'.
Ah thanks i got it to work out now they run

Offline Gob

  • The Good
Re: FOnline SDK - Question
« Reply #260 on: September 21, 2012, 07:42:19 pm »
How do you set the time of day on certain map using the mapper? Is there a command list for the mapper or smth?

Re: FOnline SDK - Question
« Reply #261 on: September 23, 2012, 03:04:55 am »
So how do you change how far you can talk to a npc

Offline Wipe

  • Rotator
  • Random is god
Re: FOnline SDK - Question
« Reply #262 on: September 23, 2012, 09:13:18 am »
How do you set the time of day on certain map using the mapper?
With default mapper scripts, #MapTime <time>

Is there a command list for the mapper or smth?
You have copy in Tools/Mapper/ReadMe.txt

So how do you change how far you can talk to a npc
Globally: __TalkDistance, see config.fos; per NPC: Critter param ST_TALK_DISTANCE, see _defines.fos
Games are meant to be created, not played...

Offline Gob

  • The Good
Re: FOnline SDK - Question
« Reply #263 on: September 23, 2012, 09:54:36 am »
Thanks. Nice avatar btw :).

Re: FOnline SDK - Question
« Reply #264 on: September 23, 2012, 10:20:41 am »
So how do i make/edit an encounter like to make it like unity vs bos
« Last Edit: September 23, 2012, 06:21:33 pm by Bevolard »

Re: FOnline SDK - Question
« Reply #265 on: September 24, 2012, 04:06:14 am »
How do I make it so I cant see npcs through walls?

I also have a problem with my world map I don't really know how to fix it reveals past the grid and its all uneven
http://tinypic.com/view.php?pic=2n0kinb&s=6
« Last Edit: September 24, 2012, 06:26:49 am by Bevolard »

Offline SEGA_RUS

  • Arbeit macht frei
Re: FOnline SDK - Question
« Reply #266 on: September 24, 2012, 12:10:41 pm »
How do I make it so I cant see npcs through walls?
comment this in config.fos
Code: [Select]
__LookChecks |= LOOK_CHECK_DIR;P.S
try to change size of worldmap in config.fos
Code: [Select]
        __GlobalMapWidth            = 28; // Maximum 100 its count of suares on horizontal
        __GlobalMapHeight           = 30; // Maximum 100 its count of suares on vertical
        __GlobalMapZoneLength       = 50; // Maximum 500 its h and y of 1 square of global
        __GlobalMapMaxGroupCount    = 10;
or ask it from one of 2238 devs ;D
and as i see u wana make a 2238 WM
u muct change the mask of WM "Server\maps\relief_tla.png"|
here a message about mask on russian (
« Last Edit: September 25, 2012, 12:29:00 pm by SEGA_RUS »
Skype - sega_75rus

Re: FOnline SDK - Question
« Reply #267 on: September 24, 2012, 12:25:09 pm »
yeah i did change the mask but i could not see the whole map so i changed the size and the problem is the grids are not right :/ thanks for the help by the way
Is there a way to disable fog on the world map?
« Last Edit: September 24, 2012, 04:41:15 pm by Bevolard »

Re: FOnline SDK - Question
« Reply #268 on: September 25, 2012, 12:28:45 am »
Is there a way to disable fog on the world map?
Code: [Select]
void  SetFog (uint16 zoneX, uint16 zoneY, int fog)
An example (from sdk replication.fos):
Code: [Select]
    zoneX = cr.WorldX / __GlobalMapZoneLength;
    zoneY = cr.WorldY / __GlobalMapZoneLength;
    cr.SetFog( zoneX, zoneY, FOG_NONE );
    cr.SetFog( zoneX - 1, zoneY - 1, FOG_HALF );
    cr.SetFog( zoneX, zoneY - 1, FOG_HALF );
    cr.SetFog( zoneX + 1, zoneY - 1, FOG_HALF );
    cr.SetFog( zoneX - 1, zoneY, FOG_HALF );
    cr.SetFog( zoneX + 1, zoneY, FOG_HALF );
    cr.SetFog( zoneX - 1, zoneY + 1, FOG_HALF );
    cr.SetFog( zoneX, zoneY + 1, FOG_HALF );
    cr.SetFog( zoneX + 1, zoneY + 1, FOG_HALF );

Use a simple loop to make whole worldmap visible.
Remember that having worldmap locations visible is a different thing:

Code: [Select]
bool  SetKnownLoc (bool byId, uint locNum)
An example (also from replication.fos):
Code: [Select]
cr.SetKnownLoc( false, LOCATION_BrokenHills );
cr.SetKnownLoc( false, LOCATION_NewReno );

Re: FOnline SDK - Question
« Reply #269 on: September 25, 2012, 02:53:37 am »
yeah i did change the mask but i could not see the whole map so i changed the size and the problem is the grids are not right :/ thanks for the help by the way
Is there a way to disable fog on the world map?
I am very thankful of this

I still want help on this grid problem
http://tinypic.com/view.php?pic=2n0kinb&s=6
and if adding more zones solves this how do i do that?
« Last Edit: September 25, 2012, 08:45:27 am by Bevolard »