FOnline Development > General Discussion

My way to resolve the problem with displaying errors in FixBoy.

(1/1)

remake:
Hello!
When you get a new SDK and you call for FixBoy screen, then you will see some errors.
Instead of "pieces", craft descriptions with results you will see "error", descriptions of language and screen settings, even "always on top".

Do you want to know how to fix this?
First:
Open _msgstr.fos and find this part

--- Code: ---// FixBoy
#define STR_FIX_PARAMS                       ( 150 )
#define STR_FIX_TOOLS                        ( 151 )
#define STR_FIX_ITEMS                        ( 152 )
#define STR_FIX_PIECES                       ( 155 )
#define STR_FIX_YOUHAVE                      ( 156 )
#define STR_FIX_SUCCESS                      ( 160 )
#define STR_FIX_FAIL                         ( 161 )
#define STR_FIX_TIMEOUT                      ( 162 )

// Interface
#define STR_OPTIONS_LANGUAGE                 ( 200 )
#define STR_OPTIONS_LANGUAGE_RUSSIAN         ( 201 )
#define STR_OPTIONS_LANGUAGE_ENGLISH         ( 202 )
#define STR_OPTIONS_RESOLUTION               ( 210 )
#define STR_OPTIONS_FULL_SCREEN              ( 211 )
#define STR_OPTIONS_ALWAYS_ON_TOP            ( 212 )
--- End code ---
As you can see there are strings directives for all FixBoy's descriptions and some settings. These from 200 to 212 are display in FixBoy's screen. Lets repid them - these for settings from 200-212 to 150-162 and these for FixBoy from 150-162 to 200-212. It should looks like that:

--- Code: ---// Interface 150,151,153,160,161,162
#define STR_OPTIONS_LANGUAGE                 ( 150 )
#define STR_OPTIONS_LANGUAGE_RUSSIAN         ( 151 )
#define STR_OPTIONS_LANGUAGE_ENGLISH         ( 152 )
#define STR_OPTIONS_LANGUAGE_POLISH          ( 153 )
#define STR_OPTIONS_RESOLUTION               ( 160 )
#define STR_OPTIONS_FULL_SCREEN              ( 161 )
#define STR_OPTIONS_ALWAYS_ON_TOP            ( 162 )

// FixBoy 200,201,202,205,206,210,211,212
#define STR_FIX_PARAMS                       ( 200 )
#define STR_FIX_TOOLS                        ( 201 )
#define STR_FIX_ITEMS                        ( 202 )
#define STR_FIX_PIECES                       ( 205 )
#define STR_FIX_YOUHAVE                      ( 206 )
#define STR_FIX_SUCCESS                      ( 210 )
#define STR_FIX_FAIL                         ( 211 )
#define STR_FIX_TIMEOUT                      ( 212 )
--- End code ---
Save changes!

Now second part:
Open FOGAME.MSG (for yours languages) and find part with FixBoy and setting descriptions, pids from 150-212 (in example I'll show FOGAME.MSG for english language):

--- Code: ---####################################################################################################################################
#
# FixBoy
#
####################################################################################################################################

{150}{}{Parameters:}
{151}{}{Tools:}
{152}{}{Items:}
{155}{}{pc.}
{156}{}{you have }
{160}{}{You have successfully created an item(s).}
{161}{}{You did not manage to create an item(s).}
{162}{}{You are too tired, try again later.}

####################################################################################################################################
#
# Interface text
#
####################################################################################################################################

# Options
{200}{}{Language}
{201}{}{Русский}
{202}{}{English}
{210}{}{Screen resolution}
{211}{}{Full screen}
{212}{}{Always on top}
--- End code ---
Repid it for compatibility with _msgstr.fos. These FixBoy's PIDs put in interval of 200-212 and these from settings in 150-162. It should be something like that:

--- Code: ---####################################################################################################################################
#
# FixBoy
#
####################################################################################################################################

{200}{}{Parameters:}
{201}{}{Tools:}
{202}{}{Items:}
{205}{}{pc.}
{206}{}{you have }
{210}{}{You have successfully created an item(s).}
{211}{}{You did not manage to create an item(s).}
{212}{}{You are too tired, try again later.}

####################################################################################################################################
#
# Interface text
#
####################################################################################################################################

# Options
{150}{}{Language}
{151}{}{Русский}
{152}{}{English}
{153}{}{Polski}
{160}{}{Screen resolution}
{161}{}{Full screen}
{162}{}{Always on top}
--- End code ---
Save changes!
Run server and client!

Is it really working?
Check it on this movie, where I used three different languages and it's work on them: https://www.youtube.com/watch?v=9dXnf5V8DFs

Navigation

[0] Message Index

Go to full version