fodev.net

FOnline Development => Questions and Answers => Topic started by: doon on November 03, 2014, 03:23:03 pm

Title: Fonline 2238 SDK and 3d registration
Post by: doon on November 03, 2014, 03:23:03 pm
Hello,

Rcently i have moved my project to 2238 Sdk but after uncoment line for 3d and launch game, i keep the same registration without 3d.
I have looked inti client.main but i can't find what is wrong...
Someone can help me?

Thanks ,Doon

Edit: On another subject i have see that 3 function need to be delete to make 3d registration working but after some hour of research i can't find them.
Title: Re: Fonline 2238 SDK and 3d registration
Post by: doon on November 05, 2014, 12:13:12 pm
Nobody can help me? :/
Title: Re: Fonline 2238 SDK and 3d registration
Post by: fonliner on November 05, 2014, 04:34:35 pm
Man I wish help you but I dont know. Maybe search somewhere in 3d board because I saw there few screens 3d models in 2238 locations.
Title: Re: Fonline 2238 SDK and 3d registration
Post by: doon on November 05, 2014, 05:03:45 pm
Found that on 'making 3d character work'

First issue is that the character registration won't work. Enabling the #DEFINE PLAYERS_3D line will make every script that was previously ignoring it, start to use it. But there are 3 functions that are imported from the character registration script into client_main , that will cause a problem, and the script won't compile at all, making the game crash. If you are smart and find a way to fix it, that's very nice. I just cancelled those three functions inside the client_main script, and the problem was solved for me.

But I don't find these functions...
Title: Re: Fonline 2238 SDK and 3d registration
Post by: doon on November 06, 2014, 01:36:18 am
After set up of 3d i have lauched server with 0 error but when i lauch client it close just after.

Starting FOnline (version 464)...
Engine initialization...
Sprite manager initialization...
Sprite manager initialization complete.
Sound manager initialization...
Sound manager initialization complete.
Connecting to server<localhost:4000>.
Connection established.
Disconnect. Session traffic: send<74>, receive<862273>, whole<862347>, receive real<918345>.
Loaded<325> critter types.
Load scripts...
Bind reserved functions...
Script::Bind - Function<void items_collection(int,ItemCl@[]&)> in module<client_main> not found.
Bind reserved function fail, name<items_collection>.
Bind reserved functions fail.
FOnline engine initialization fail.

Someone know what is the problem?
Title: Re: Fonline 2238 SDK and 3d registration
Post by: Wipe on November 06, 2014, 10:28:57 am
items_collection() is one of reserved functions and it must be present in scripts - even if it does nothing and is empty. There's scripts/scripts.cfg which holds info for engine where to look for these functions - see lines with "client bind" there.

If i'd have to guess, you broke your build here:
I just cancelled those three functions inside the client_main script
This script have "main" in name for a reason :P
Title: Re: Fonline 2238 SDK and 3d registration
Post by: doon on November 06, 2014, 11:23:29 am
Thanks for your help now it work ! :)
Title: Re: Fonline 2238 SDK and 3d registration
Post by: doon on November 06, 2014, 02:41:28 pm
On sdk (tla based) i cant scroll down /up/ right /left in game map , i test all resolution but always the same :/ this sdk have no script for mouse scroll?
Title: Re: Fonline 2238 SDK and 3d registration
Post by: doon on November 07, 2014, 01:57:35 am

Someone know where can i find this rev?(360) :

http://www.fonline.ru/files/FOnline_r360_2012-03.zip
Link is broken and i cant download old rev on repo...
Title: Re: Fonline 2238 SDK and 3d registration
Post by: JovankaB on November 07, 2014, 05:29:39 am
You can use TortoiseSVN or any other SVN client to change your local repository to revision 360. As far as I remember the option was called "Update to revision". You can also google FOnline_r360_2012-03.zip, but there is no guarantee that it will be the original files without any alterations.
Title: Re: Fonline 2238 SDK and 3d registration
Post by: doon on November 07, 2014, 08:42:44 am
Thanks it work:)
Title: Re: Fonline 2238 SDK and 3d registration
Post by: doon on November 08, 2014, 11:45:46 am
Just a small post to say im looking for people with knowledge ( beginner too ) that are interresting to join my project (pm me on forum).

Link: http://www.indiedb.com/games/fonline-last-breath

Doon
Title: Re: Fonline 2238 SDK and 3d registration
Post by: fonliner on November 08, 2014, 09:24:23 pm
Interesting project, hope you make something! Is it Desert Europe because world map is from it as I see...
Title: Re: Fonline 2238 SDK and 3d registration
Post by: doon on November 08, 2014, 10:03:07 pm
Yep but i use it for test only, i'll make my own GM after beginings maps/loc will be ready :)
Title: Re: Fonline 2238 SDK and 3d registration
Post by: fonliner on November 09, 2014, 10:53:50 am
Ohh man I love that APA model nice that you use it :D Also do you use all karpov's models?

(http://media.indiedb.com/images/games/1/34/33511/armor.png)

Title: Re: Fonline 2238 SDK and 3d registration
Post by: doon on November 09, 2014, 01:51:17 pm
Yep i use his models (armors, weapon, item, character), he helped me to set in sdk, thanks to him :)
Next step i have to create begins location/quest and turn all npc 3d.
In few hours or days a new post on indiedb showll next step:) Its currently awaiting authorisation of admin.
Title: Re: Fonline 2238 SDK and 3d registration
Post by: fonliner on November 09, 2014, 07:04:06 pm
Good man, maybe we will get first 3d usage...
Title: Re: Fonline 2238 SDK and 3d registration
Post by: doon on November 09, 2014, 09:12:37 pm
I'll do my best :)