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

Offline SEGA_RUS

  • Arbeit macht frei
Re: FOnline SDK - Question
« Reply #270 on: September 25, 2012, 12:45:00 pm »
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?
kay, I'll try to explain it correctly on steps
1)You need to know how much images in worldmap which u cutted and set this values in default.ini
Code: [Select]
GmapTilesX = 4 //Count of worldmap images on height
GmapTilesY = 5 //Count of worldmap images on width
2)You need to know how much pixels on your worldmap in sum, like 2400x3800 and each value u must divide to
Code: [Select]
__GlobalMapZoneLength = 50; // How much pixels in 1 zone, maxmim is 500and then set this values
Code: [Select]
__GlobalMapWidth = 48; // Maximum 100, just an example
__GlobalMapHeight = 76; // Maximum 100, just an example
same values u need to set in worldmap.fos
Code: [Select]
#define ZONE_COUNT_X (48)
#define ZONE_COUNT_Y (76)
#define ZONE_LENGTH (50)
3)Mask...but u know it from previous message
4)Make shure, that u got equial pieces of worldmap, its VERY IMPORTANT!
Skype - sega_75rus

Offline ronon dex

  • Sateda my planet was destroyed.
Re: FOnline SDK - Question
« Reply #271 on: September 25, 2012, 04:50:03 pm »
I reinstalled my system in a PC. I had to re-download the SDK. somehow I do not remember where the start script. please help, client reports an error and I have still not correct. thank you for your answer.
Sorry, my english is bad.

Re: FOnline SDK - Question
« Reply #272 on: September 25, 2012, 05:55:27 pm »
Thank you SEGA_RUS I now understand :)
« Last Edit: September 25, 2012, 06:06:19 pm by Bevolard »

Re: FOnline SDK - Question
« Reply #273 on: September 26, 2012, 02:33:44 pm »
I've Noticed That in The Life After, the animation for picking up Objects is the Same as using an item. How can I switch this so That the animation is the Same as dropping or looting? Thanks! :)

Re: FOnline SDK - Question
« Reply #274 on: September 26, 2012, 05:00:10 pm »
I've Noticed That in The Life After, the animation for picking up Objects is the Same as using an item. How can I switch this so That the animation is the Same as dropping or looting? Thanks! :)
Open client_main.fos , find
Code: [Select]
case ACTION_PICK_ITEM:
        if( cr.IsLife() && valid( proto ) )
        {
            cr.ClearAnim();
            cr.Animate( 0, proto.GroundLevel ? ANIM2_PICKUP : ANIM2_USE );
        }
        break;

change
Code: [Select]
cr.Animate( 0, proto.GroundLevel ? ANIM2_PICKUP : ANIM2_USE );to
Code: [Select]
if (proto.Type < 8 ) cr.Animate( 0, ANIM2_PICKUP );
else cr.Animate( 0, proto.GroundLevel ? ANIM2_PICKUP : ANIM2_USE );
« Last Edit: September 26, 2012, 07:27:16 pm by Skycast »

Offline barter1113

  • New Vegas fanatic =)
Re: FOnline SDK - Question
« Reply #275 on: September 26, 2012, 08:17:55 pm »
I've Noticed That in The Life After, the animation for picking up Objects is the Same as using an item. How can I switch this so That the animation is the Same as dropping or looting? Thanks! :)

Anyway, why they change animations? Is it bug?

Re: FOnline SDK - Question
« Reply #276 on: September 27, 2012, 05:05:03 am »
Anyway, why they change animations? Is it bug?
Who change animation? It was always like this in sdk.

Re: FOnline SDK - Question
« Reply #277 on: September 27, 2012, 09:07:05 am »
~runscript debug body 1 21 0
When I restart the server it doesn't save the skin is there a way to save it?

Offline Wipe

  • Rotator
  • Random is god
Re: FOnline SDK - Question
« Reply #278 on: September 27, 2012, 09:22:18 am »
Code: [Select]
if( target.ChangeCrType( param1 ))
    target.StatBase[ST_BASE_CRTYPE] = param1;

Edit: Ah, it's possible that it's set basing on char gender, check main@critter_init - i think TLA is doing so, but not sure.
« Last Edit: September 27, 2012, 09:30:32 am by Wipe »
Games are meant to be created, not played...

Offline barter1113

  • New Vegas fanatic =)
Re: FOnline SDK - Question
« Reply #279 on: September 27, 2012, 01:37:13 pm »
Who change animation? It was always like this in sdk.

Nope, the old versions (idk which exactly but very old) had normal animations.

Re: FOnline SDK - Question
« Reply #280 on: September 27, 2012, 04:41:04 pm »
I just get a bunch of errors i have no idea what to do
« Last Edit: September 28, 2012, 04:15:20 pm by Bevolard »

Offline barter1113

  • New Vegas fanatic =)
Re: FOnline SDK - Question
« Reply #281 on: September 27, 2012, 06:11:13 pm »
I'm not up to date with the sdk, what is planning for the next revision, for 381?

Re: FOnline SDK - Question
« Reply #282 on: September 28, 2012, 04:38:55 am »
Quote
~runscript debug body 1 21 0
When I restart the server it doesn't save the skin is there a way to save it?

Code: [Select]
if( target.ChangeCrType( param1 ))
    target.StatBase[ST_BASE_CRTYPE] = param1;

Edit: Ah, it's possible that it's set basing on char gender, check main@critter_init - i think TLA is doing so, but not sure.
yeah I need help I don't really know what to do.
« Last Edit: September 28, 2012, 06:19:24 pm by Bevolard »

Re: FOnline SDK - Question
« Reply #283 on: September 28, 2012, 11:59:35 pm »
Something like this:
Code: [Select]
int crType = ( player.Stat[ ST_GENDER ] == GENDER_MALE ? CRTYPE_male_type : CRTYPE_feramle_type );
player.ChangeCrType( crType );
player.StatBase[ ST_BASE_CRTYPE ] = crType;

Some critter types defined in _defines.fos
Code: [Select]
// Dweller
#define CRTYPE_DW_JUMPSUIT_M                     ( 11 )
#define CRTYPE_DW_JUMPSUIT_F                     ( 4 )
#define CRTYPE_DW_LEATHER_JACKET_F               ( 6 )
#define CRTYPE_DW_LEATHER_ARMOR_M                ( 12 )
#define CRTYPE_DW_LEATHER_JACKET_M               ( 13 )
#define CRTYPE_DW_METAL_ARMOR_M                  ( 14 )
#define CRTYPE_DW_TRIBAL_F                       ( 63 )
#define CRTYPE_DW_TRIBAL_M                       ( 64 )

But you can add yours.

Re: FOnline SDK - Question
« Reply #284 on: September 29, 2012, 12:49:34 pm »
ok thanks
« Last Edit: September 30, 2012, 11:21:10 am by Bevolard »