fodev.net

FOnline Development => General Discussion => Topic started by: noizeCode on April 03, 2013, 02:43:43 pm

Title: Using the Clean SDK for Development
Post by: noizeCode on April 03, 2013, 02:43:43 pm
Hi there,

I am a big FO-Fanboy and C/C++ Developer. Together with a Friend, I am planning a Fonline Mod.

We want to reinvent the Wasteland (at least parts of it :P), with focus on a new Character System and cool Custom Maps.

I have started a few days ago with setting up a server and client Scripts for a first Prototype . I used the foserv_clean-version from this Repository:

http://xp-dev.com/svn/foserv_clean/
 (http://xp-dev.com/svn/foserv_clean/)

After browsing thru TLA Scripts and Config Files, I started to fill the gaps in the Clean Version.

Being frustrated for 2 nights(Errors, Black-Screens, Black-GM, No Location Names on GM..etc) I finally got the first Prototype up and running (thx to RedBull and all the other Drugs  ;D).

Now we have to generate the Game Content and balance the ChaSys.

If i can help anyone with the Clean SDK just ask... I think it is a good Starting-Point if u want to do something different from TLA.   When I have the time I am going to make something like an UML-Class-Digramm, like a Roadmap for Scripts for the Clean-SDK.

When there are awesome Screenshots u will sees them here.. ;D


   


Title: Re: Using the Clean SDK for Development
Post by: elqoro on April 03, 2013, 07:35:23 pm
I sent you a message, check this.
Title: Re: Using the Clean SDK for Development
Post by: noizeCode on April 03, 2013, 08:40:34 pm
Here are my pieces of code that will make easier to start with the clean sdk.

More important than the code itself is in general knowledge of how this Software works, don't be afraid of code..:)

I work with notepadd++ at this time and what is really helpful is the "search in file"-function this programm offers.

With a liiiitle work u can figure out how all the stuff is conected... with the clean sdk you only have a handfull of classes compared to the tla sdk. If U want to know how to script functional Stuff just look in the Original SDK and compare the classes and copy some of the function-calls . Whatever u do... do it step by step... and think about it... its no Rocket-Science.

Before u follow my little hints download the Clean SDK and start the Client Server Duo without manipulating the .fos scripts. Register a Char log on to the Server and check out everything works. U won't see the Cursor don't worry just doo it....;D

So u downloaded the clean sdk and want to load a gloabal map make a few Loacations on it connected to .fomaps ?

LETS DO IT !LETS DO IT !LETS DO IT !LETS DO IT !LETS DO IT !LETS DO IT !LETS DO IT !LETS DO IT !LETS DO IT !LETS DO IT !LETS DO IT !LETS DO IT !LETS DO IT !LETS DO IT !
Code: [Select]

fallout.dat
data\core.zip


Code: [Select]
void critter_init( Critter& cr, bool firstTime )
{
DSay( cr, "critter_init "+(firstTime?"(firstTime)":"") );



if(firstTime)
{
if(cr.IsPlayer())
{
                             //Set FOG_Half for every Sector on the GM
               for(uint x=0;x<__GlobalMapWidth ;x++)for(uint y=0;y<__GlobalMapHeight;y++) cr.SetFog( x, y, FOG_HALF );

              .
              .
              .
              .
              .
}


Code: [Select]
[Area 1]
name = Desert #Location_Name
size = 6 #Size of Dot on GM
map_0 = e_desert1 1 #Map_Name Pid
entrance = 1 # How many entrance Points
visible = 1 # is Visible on GM
           and GenerateWorld.cfg
Code: [Select]
@ 1 375 555 #Desert(ID, X_COORD_ON_GM,Y_COORD_IN_GM)

Code: [Select]
cr.SetKnownLoc( false, LOCATION_Desert );
       put it right under the part where the for_loops are. The next char you create can see the location due to if(firstTime)
Code: [Select]
# Map 0, Global, base 10
{20}{}{Desert}#Location Name
# Desert, pid 1, base 101000
{101000}{}{Desert}#Location Title
{101005}{}{A generic piece of desert...}#Location Subtitle


This is it for now... I am going to write more Stuff about the Char and Perk Sys... but another Day.

Hope this helps in UR Projects... if u have any questions go ahead.
Title: Re: Using the Clean SDK for Development
Post by: Gob on April 04, 2013, 06:34:36 pm
Finally someone wrote something useful good job.
Title: Re: Using the Clean SDK for Development
Post by: noizeCode on April 04, 2013, 07:17:40 pm
Glad I could help...:)