Recent Posts

Pages: [1] 2 3 ... 10
Thanks Vice Dice, really useful information right there, nice explanation and a perfect starting point to start working with critter data. I'm personally still learning how all is structured in FOnline code and I don't have a working environment to test things out, but from what I can read what OP is seeking could be achieved by changing some constants definitions:


Code: [Select]
// Critter base types
#define CRTYPE_MALE_DEFAULT                      (CRTYPE_MALE_VAULTSUIT)


Code: [Select]
// Critter base types
You use "bool ChangeCrType(uint newType);" engine Critter method function for that. Normally SDK holds something like "Base" critter type inside some stat, normally it is ST_BASE_CRTYPE, then to use this critter type value to restore "nude" skin of critters that take off their armors etc.

If you still don't quite understand, critter type is a structure that contains lots of data, such as animations indices allowing, run/walk time, and most importantly the actual animation BASE name ( which is technically a part of skin graphics file name). It is hooked up in plain non-negative number, you can check them in your CritterTypes.cfg file, normally its located in server/data folder, normally this file should be self-explanatory what is inside for you to get used to it. So when you want to change the critter type you logically feed the desired critter type ID ( the number its declared with ). Directly you can do it with plain number, i.e if your critter type is marked with 13 ID, you just call it with critter.ChangeCrType(13), normally people define those IDs as some verbose and easy to understand constants, then to make it easier to read and refer to in future.

At which point of execution to do this is up to you, but NORMALLY such things done via critter_init server engine callback, that allows globally handle all newly generated critters, players included. And if you do it in there, you probably want it to be executed only when firstTime is true.

Code: [Select]
            cr.StatBase[ST_BASE_CRTYPE] = (cr.Stat[ST_GENDER] == GENDER_MALE ? CRTYPE_MALE_DEFAULT : CRTYPE_FEMALE_DEFAULT); // set our base critter type (presumably forever)
            cr.ChangeCrType(cr.StatBase[ST_BASE_CRTYPE]); // apply it;

If you want to change only the visual representation of a critter without changing it critter type, you might want to teach engine/rename graphic files ( why though ).
Questions and Answers / Re: Admin Panel?
« Last post by C4N on Yesterday at 05:26:47 pm »
Any subsystem relying on telnet for remote tasks shouldn't be accessible from outside an isolated network inside same server's network, without a replacement for that admin panel or a firewall to only allow that feature to work from a specific network, it should be just disabled and forgotten.
Questions and Answers / Re: Where and how to change basic skin for new player?
« Last post by C4N on Yesterday at 11:59:05 am »

I have simple question about basic skin for player. I do not want to use classic blue jumpsuit skin, but leather jacket skin. I seriously dislike this blue "gay" skin :-D

So here is my question: Where and how to change settings to change critter (or whatever) to use leather jacket skin as default for any new players?

Sorry for my bad english and thanks for an advice.

As I understand, you want to change default player unarmored view.

Code: [Select]
`disguise critter_number_from_CritterTypes.cfg target_critter_id

From what I can see, disguise is a cheat command listed on the cheat codes table


This procedure is called on player registration/login from what I can see here:

Code: [Select]
// Call on player register or login in game.
// Default start position for players is center of global map.

Personally, I felt like being interviewed. The only thing missing here was a desk lamp that glows in the eye.
If you want to work with the server you have to learn the basics first. To find the answer follow the game scripts's code.

My man wut? haha

I have not found any code related to setting default unarmored player's view, so my suggestion would be to workaround it and just replace the graphic asset.
FOnline Projects / Re: FOClassic server example.
« Last post by C4N on Yesterday at 10:47:38 am »
I'm trying to make this example to work without success, this is a strange issue; mouse pointer doesn't shows on the client
Share Your Work / Re: 1080 Worldmap
« Last post by C4N on Yesterday at 10:06:18 am »
Hello again, I've been thinking about coming back to this project since I saw FOClassic on Github, I think it's a good opportunity to bring back this 1080p layout I were working on some tine ago.

How could the console be repositioned?
FOnline Projects / Re: FOnline: Reloaded CZ
« Last post by Powerack on July 17, 2019, 11:08:13 pm »
All news about translation progress are in first post. If you have any questions, you may use this topic.
FOnline Projects / Re: FOnline: The Last Stand
« Last post by Wipe on July 14, 2019, 01:13:33 pm »
FOnline Projects / Re: FOnline: Reloaded CZ
« Last post by Powerack on July 10, 2019, 03:46:48 am »
Sure. Another Czech "project" has its own translators who do not cooperate with us. That's why I say our Czech will be almost for everyone.
FOnline Projects / Re: FOnline: Reloaded CZ
« Last post by Wipe on July 09, 2019, 06:18:08 pm »
Almost ???
Pages: [1] 2 3 ... 10