fodev.net
15.08.2009 - 23.06.2013
"Wasteland is harsh"
Home Forum Help Login Register
  • November 23, 2024, 05:10:55 pm
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Play WikiBoy BugTracker Developer's blog
Pages: [1] 2

Author Topic: Development insider  (Read 2799 times)

Bartosz

  • Rotator
  • There'd better be a killer reason...
  • Offline
Development insider
« on: August 21, 2011, 11:36:10 am »

Hi
Decided to start writing about technical aspects of developing FOnline game on our blog. Maybe the ones learning and trying to come with their own server will find this interesting.
First post, hopefully not last: http://fonline2238.blogspot.com/2011/08/what-would-be-point-of-having.html

Do you think forum section devoted to SDK here would be needed?
Logged

JovankaB

  • Guest
Re: Development insider
« Reply #1 on: August 21, 2011, 11:40:16 am »

Quote
Do you think forum section devoted to SDK here would be needed?
I think it's a great idea.
Logged

SEGA_RUS

  • Arbeit macht frei
  • Offline
Re: Development insider
« Reply #2 on: August 21, 2011, 01:29:05 pm »

Quote
Do you think forum section devoted to SDK here would be needed?
Shure
Logged
Skype - sega_75rus
Re: Development insider
« Reply #3 on: August 21, 2011, 03:17:02 pm »

Thanx for your communication effort Scypior.

A SDK section would help on 2 major things :
- coders to find support on their works
- no-coders to have a view on "what's coding ?"
And for both, a better view on whqt is possible or not with the SDK.

I have done a similar section on a french forum.
If people still afraid about posting in actualy, there are a lot of reading hits.
Logged

Berko

  • Tim Tom Ted
    • http://kabefis.deviantart.com/
  • Offline
Re: Development insider
« Reply #4 on: August 21, 2011, 04:47:11 pm »

Quote
Now, there is still something wrong with that solution, first who find out what, gets a candy!
:o

Code: [Select]
array<superfoo@> Foos;superfoo don't exist?

Code: [Select]
bool _FooUse(Item& item, Critter& crit, Critter@ onCritter, Item@ onItem, Scenery@ onScenery)
{
    ISuperFoo@ foo = GetFoo(item);
    if(valid(foo)) foo.Bar();
}
_FooUse don't return bool?

Over time, each new SuperFoo are added to our array and all not used item on game using SuperFoo are still handle in our array(can't be released), memory can only grow?

Code: [Select]
void item_init(Item& item, bool)
{
    AddFoo(item);
    item.SetEvent(ITEM_EVENT_USE, "_FooUse");
}
"bool firstTime" in parameter?

 :-\
I think I don't find the "something wrong" as I'm not enough good in English to understand the purpose of SuperFoo to find wrong thing in it.

A section devoted to SDK in English can be useful for help, share or little projects.
Logged
~~~ Ashes of Phoenix project --> http://fonline-aop.net/ ~~~

Bartosz

  • Rotator
  • There'd better be a killer reason...
  • Offline
Re: Development insider
« Reply #5 on: August 21, 2011, 04:54:22 pm »

_FooUse don't return bool?
Ah I guess it's rather a typo.

Quote
Over time, each new SuperFoo are added to our array and all not used item on game using SuperFoo are still handle in our array(can't be released), memory can only grow?
Spot on! While, in certain cases, it's not a problem at all, sometimes it is. I guess the next blogpost will be on it, as I actually made such mistake before:)

Quote
"bool firstTime" in parameter?
No, this one is correct, you don't need to specify a name for formal parameter if you don't intend to use its value.

Hey, you deserve a candy, you might want apple instead? ;)

//

OK, here goes the story: http://fonline2238.blogspot.com/2011/08/tremendous-bug.html
« Last Edit: August 21, 2011, 06:51:37 pm by scypior »
Logged

Berko

  • Tim Tom Ted
    • http://kabefis.deviantart.com/
  • Offline
Re: Development insider
« Reply #6 on: August 21, 2011, 08:24:02 pm »

Youhou! \o/
**Read the story, eating his apple candy**

Ohhh .. I remember I loved to cut wood of all tree in encounter to see them growing ... :D
Logged
~~~ Ashes of Phoenix project --> http://fonline-aop.net/ ~~~
Re: Development insider
« Reply #7 on: August 21, 2011, 08:59:09 pm »

hehehe... Forgotten destructor is a Classic One ^^
Logged

jan0s1k

  • If it bleeds we can kill it...
    • Chosen Soldiers
  • Offline
Re: Development insider
« Reply #8 on: August 21, 2011, 10:58:50 pm »

Do you think forum section devoted to SDK here would be needed?

Yes, I think, that it's good idea, because look at official FOnline SDK forum:
http://fonline.ru/forum/forumdisplay.php?f=88

Mostly it is in russian, there are some english posts as well (and even sometimes in english thread responded in russian language). That makes chaos on this forum, for people who doesn't know russian searching anything in english only (of course they can search in russian with google translate, but it's a bit... weird) drop only few posts if any...

By the way, if someone doesn't know yet and is from Poland and wants to make something in FOnline SDK, there is unofficial polish developers forum with AngelScript course and such.
Logged

Johnnybravo

  • Hey there!
  • Offline
Re: Development insider
« Reply #9 on: August 22, 2011, 03:36:42 am »

I think many people trying to do stuff would either begin on russian forums/sites or struggling with russian the first.
Thus forum would be much more useful than blogposts I suppose. So yeah it's needed :d.
Logged
"What is this, I don't even"
"This is your forum."

Andr3aZ

  • Endless forum lurker
  • Offline
Re: Development insider
« Reply #10 on: August 23, 2011, 09:08:31 am »

I always wondered why theres no section for SDK development. At least it would spare Surf from my endless questioning  ;D
I think 2238 is a huge community for fonline modding and so we could do a little off-the-2238-topic for development in general.
Logged
Re: Development insider
« Reply #11 on: August 23, 2011, 11:41:10 am »

I say 'yes' to an SDK subforum. I see the 2238 forums as "the definitive English Fonline forum", and though I've google translated myself through a lot of Fonline.ru, would definitely find it beneficial to have an English equivalent.
Logged

Bartosz

  • Rotator
  • There'd better be a killer reason...
  • Offline
Re: Development insider
« Reply #12 on: August 25, 2011, 03:23:08 pm »

Logged

Berko

  • Tim Tom Ted
    • http://kabefis.deviantart.com/
  • Offline
Re: Development insider
« Reply #13 on: August 25, 2011, 08:54:14 pm »

I haven't read all but it's look interesting. Maybe I will read the end when my crippled brain will be fix .. :p

------

Edit:

Quote
server asks CouchDB for data it needs to synchronize
If we change something in the "web terminal" it will do nothing until server ask the new value?

I'm thinking of mercs/slave/militia/... who want to know if someone is friend or enemy.

What's happen when 2 mercenaries see 2 players? each mercenaries want to know if each player is friend or enemy, so server do 4 requests?
And if couchdb is down they don't react? Or server use old value after a timeout instead of new one?
It's like ask if "web terminal" with couchdb is an external add-on and can work without or it's more like an internal feature so server don't work without.

Or server always use current(old) value but ask an update(on the current value) for the next mercenary event?

I have some unresolved question like that since first post :p all around the ability of couchdb to answer all request in short time without using to many resources. Maybe you have already plane or make a stress test to see if it support easily what's you want?

(I hope it's not too much difficult to understand my awesome english '^^)
« Last Edit: August 26, 2011, 07:35:43 pm by Berko »
Logged
~~~ Ashes of Phoenix project --> http://fonline-aop.net/ ~~~
Re: Development insider
« Reply #14 on: August 27, 2011, 03:33:29 pm »

As far I have understand :

1. I think you can manage this as you want.
If the server has been choice as main operator, he can even know what is pending from the terminal as the shared space between them is the pending list. You can also choice to set the terminal as main OP by the same way.

2. Last value is the current one untill a new push it. So if the CouchDB is out, the server continu his way with the lastest.
About your mercs sample, critters "ask the server", the server just check his current value stored. But in all case, even if you have 10 mercs only 1 check is done on the attribute's faction.
Logged
Pages: [1] 2
 

Page created in 0.1 seconds with 25 queries.