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

Re: FOnline SDK - Question
« Reply #345 on: April 04, 2013, 04:11:42 pm »
How do I change the action points used for using a gun or throwing a weapon or melee attacks?
because its not in config.fos

Re: FOnline SDK - Question
« Reply #346 on: April 04, 2013, 04:51:40 pm »
How do I change the action points used for using a gun or throwing a weapon or melee attacks?
because its not in config.fos

AP cost is determined separately for each weapon, along with it's other stats such as damage, range, etc.

server/proto/items/weapon.fopro

You can open it with the object editor and have a UI to edit things with, but I've always had problem with the damn thing.  If you do, you can open it as a text file in Notepad and edit it that way.

Here's an example:  This is PID_CLUB

[Proto]
ProtoId=5
Type=3
PicMap=art\items\club.frm
PicInv=art\inven\club.frm
Flags=134217758
DisableEgg=1
Stackable=1
Weight=1360
Volume=2
SoundId=48
Cost=30
Material=3
Weapon_Anim1=5
Weapon_MinStrength=3
Weapon_ActiveUses=1
Weapon_CriticalFailture=1
Weapon_Skill_0=204
Weapon_Skill_1=200
Weapon_Skill_2=200
Weapon_DmgType_0=1
Weapon_Anim2_0=Anim2Swing1H
Weapon_PicUse_0=art\intrface\swing.frm
Weapon_PicUse_1=art\intrface\blank.frm
Weapon_PicUse_2=art\intrface\blank.frm
Weapon_DmgMin_0=1
Weapon_DmgMax_0=6
Weapon_MaxDist_0=1
Weapon_ApCost_0=3   <~  Right there is your Action Point cost.
Weapon_Aim_0=1
Weapon_SoundId_0=54

To find out which weapon (or item) is which, look in _itempid.fos
Iguana Pete's sister


Re: FOnline SDK - Question
« Reply #347 on: April 05, 2013, 06:39:26 am »
thank you very helpful ;D

Re: FOnline SDK - Question
« Reply #348 on: April 07, 2013, 01:32:19 pm »
is there a way to change the encounter rate?

Re: FOnline SDK - Question
« Reply #349 on: April 08, 2013, 01:47:55 pm »
Also how can I hide a location I want to remove the replication areas from the world map

Re: FOnline SDK - Question
« Reply #350 on: April 08, 2013, 06:40:50 pm »
Look in /maps/locations.cfg

Find the correct location...

Code: [Select]
[Area 1]
name = Desert
size = 6
map_0 = e_desert1 1
entrance = $0 0
visible = 1
auto_garbage = 1

Change visible to 0, wipe the server.
Iguana Pete's sister


Re: FOnline SDK - Question
« Reply #351 on: April 08, 2013, 08:04:45 pm »
thank you do you also know how to change how frequent the encounters on the world map are?

Re: FOnline SDK - Question
« Reply #352 on: April 08, 2013, 08:39:52 pm »
thank you do you also know how to change how frequent the encounters on the world map are?

I believe it's defined in either the server cfg, location.fos, or both. I've never messed with it, so not 100% sure off the top of my head.
Iguana Pete's sister


Re: FOnline SDK - Question
« Reply #353 on: April 09, 2013, 02:58:54 am »
I checked and I dont think its defined in either of them :(
« Last Edit: April 09, 2013, 03:06:30 am by Demenise »

Re: FOnline SDK - Question
« Reply #354 on: April 09, 2013, 09:54:04 am »
In my sdk I cant see doors beyond my view distance how do I change it so I can see the doors any where even beyond my view distance

Offline Wipe

  • Rotator
  • Random is god
Re: FOnline SDK - Question
« Reply #355 on: April 09, 2013, 10:03:06 am »
Set 'always visible' flag in ObjectEditor
Games are meant to be created, not played...

Re: FOnline SDK - Question
« Reply #356 on: April 09, 2013, 11:14:25 am »
Can anyone suggest to me a good program to create DAT files I tried some from NMA but none of them work.
« Last Edit: April 10, 2013, 05:28:26 am by Demenise »

JovankaB

  • Guest
Re: FOnline SDK - Question
« Reply #357 on: April 09, 2013, 12:01:02 pm »
Fortunately in FOnline you don't have to use DAT format, you can use ZIP instead.
But if you really need to save something in DAT, you can try DAT explorer, it can be found here: http://www.hot.ee/fallout/
Use import menu to put files into DAT.
« Last Edit: April 09, 2013, 12:02:47 pm by JovankaB »

Re: FOnline SDK - Question
« Reply #358 on: April 10, 2013, 05:30:26 am »
in locations.cfg I changed the visibility for the replication maps to 0 and wiped my server completely and they still show up on the world map  so if anyone knows why the replication maps are still showing up on the world map please tell me thanks.

Re: FOnline SDK - Question
« Reply #359 on: April 10, 2013, 06:30:38 am »
in locations.cfg I changed the visibility for the replication maps to 0 and wiped my server completely and they still show up on the world map  so if anyone knows why the replication maps are still showing up on the world map please tell me thanks.

Ah, yeah.  Forgot about one thing.  That's what I get for posting from my phone.  :D

replication.fos sets certain locations as known locations, so you just have to /// them out, or remove those lines from the script.

Code: [Select]
void SetStartLocation( Critter& cr ) // Export
{
    Map@ replicator = GetStartReplicatorMap();
    if( not valid( replicator ) )
        return;

    // Hidden fog on default player position
    uint zoneX = cr.WorldX / __GlobalMapZoneLength;
    uint zoneY = cr.WorldY / __GlobalMapZoneLength;
    cr.SetFog( zoneX, zoneY, FOG_FULL );
    cr.SetFog( zoneX - 1, zoneY - 1, FOG_FULL );
    cr.SetFog( zoneX, zoneY - 1, FOG_FULL );
    cr.SetFog( zoneX + 1, zoneY - 1, FOG_FULL );
    cr.SetFog( zoneX - 1, zoneY, FOG_FULL );
    cr.SetFog( zoneX + 1, zoneY, FOG_FULL );
    cr.SetFog( zoneX - 1, zoneY + 1, FOG_FULL );
    cr.SetFog( zoneX, zoneY + 1, FOG_FULL );
    cr.SetFog( zoneX + 1, zoneY + 1, FOG_FULL );

    cr.TransitToMap( replicator.Id, ENTIRE_REPLICATION );

    cr.SetKnownLoc( true, replicator.GetLocation().Id );
    cr.SetKnownLoc( false, LOCATION_ReplicationHell );
    uint16 replPid = replicator.GetLocation().GetProtoId();
    if( replPid == LOCATION_Replication1 )
    {
        cr.SetKnownLoc( false, LOCATION_Den );
        cr.SetKnownLoc( false, LOCATION_Klamath );
    }
    else if( replPid == LOCATION_Replication2 )
    {
        cr.SetKnownLoc( false, LOCATION_Modoc );
    }
    else if( replPid == LOCATION_Replication3 )
    {
        cr.SetKnownLoc( false, LOCATION_Redding );
    }
    else if( replPid == LOCATION_Replication4 )
    {
        cr.SetKnownLoc( false, LOCATION_BrokenHills );
        cr.SetKnownLoc( false, LOCATION_NewReno );
    }

    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 );
}

You can also use this portion of the script to set any other locations on the map you want to be visible on character creation.
Iguana Pete's sister