Menu

[r2]: / config.xml  Maximize  Restore  History

Download this file

1 lines (1 with data), 8.8 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
<Server>
<!-- it's the server name used by the server. You can change to match your server name -->
<ServerIP>192.168.10.3</ServerIP>
<!-- By default GameServer listens on port 8001 for connections, but you can change this to any other value if your firewall is filtering this particular port number. Please remember that port values below 1024 are only allowed by the Flash Player version 7.0.19.0 or later -->
<ServerPort>8002</ServerPort>
<ServerName>WorldServer_2</ServerName>
<!-- Server language:zh-cn, zh-tw, en -->
<Language>zh-cn</Language>
<!-- operate system socket parameter: blocklog, windows xp: 20, linux: 50 -->
<Backlog>50</Backlog>
<!-- bytes -->
<ReceiveBufferSize>102400</ReceiveBufferSize>
<!-- seconds -->
<ConnTimeout>600</ConnTimeout>
<!-- Resouce file name -->
<ResouceFile>information.xml</ResouceFile>
<!-- The time (milliseconds) is expressed in seconds and it represents the maximum time allowed for an idle client. After that time, idle users are automatically disconnected by the server -->
<MaxUserIdleTime>600000</MaxUserIdleTime>
<!--
The <OutQueueThreads> tag represents the number of Java worker threads used
A good rule to help you decide how many threads to assign is: (number of cpus / 2)
-->
<OutQueueThreads>1</OutQueueThreads>
<!-- Incoming queue max size -->
<InQueueSize>100</InQueueSize>
<!-- The maximum number of user variables that can be created by a single user. -1 = unlimited -->
<MaxUserVars>2</MaxUserVars>
<!-- The maximum size of each log file before a new log file is created, bytes. 20971520=20M -->
<LogMaxSize>20971520</LogMaxSize>
<!-- The maximum number of log files the server can create -->
<LogMaxFiles>10</LogMaxFiles>
<!--
Defines the importance level of the Server messages outputted in the log files.
There are 4 levels of logging depending on the importance of the log message, some of them are just internal notifications useful for debugging and others are very important messages that indicate application warnings and errors.
The levels are: DEBUG, WARNING, INFO, ERROR
By default the FileLoggingLevel is set to WARNING to help administrators find misbehaviours in the server, bad client requests etc
-->
<FileLoggingLevel>DEBUG</FileLoggingLevel>
<!--
Same as above but log messages are redirected to the operating system console.
By default the console logger shows "INFO" or higher level messages.
By changing this value to a lower importance level like "FINE" you can debug your applications with more details for each server action.
We reccomend to use "INFO" levels for production servers and lower values for local testing/debugging
-->
<ConsoleLoggingLevel>DEBUG</ConsoleLoggingLevel>
<!-- true or false -->
<DisabledConsoleLogging>false</DisabledConsoleLogging>
<FileLogName>gameserver</FileLogName>
<!-- The server administrator login name -->
<AdminLogin>admin</AdminLogin>
<!--
The server administrator password. The password must be at least 6 characters long and we reccomend to use alphanumeric characters and numbers mixed together for better security.
NOTE: The password sent by the client Admin tool is always encrypted
-->
<AdminPassword>123456</AdminPassword>
<!-- load rdbms table data percentage(%100), very importance, please don't modify without gameserver administrator -->
<FastDBLoadFactor>50</FastDBLoadFactor>
<POJOPackageName>com.handjoys.pojo</POJOPackageName>
<MaxRoom>100</MaxRoom>
<!-- max online user count of one room -->
<MaxRoomUser>20</MaxRoomUser>
<!-- max sequence of the game credit -->
<MaxNumberOfGBB>10</MaxNumberOfGBB>
<!-- game credit server -->
<GBBServer>192.168.10.3:5000</GBBServer>
<!-- refresh the game top credit interval (min) -->
<GameTopRefreshTime>720</GameTopRefreshTime>
<!--
For higher admin security you can restrict the IP addresses allowed to connect as administrators.
You can specify any number of allowed addresses.
If you wish to bypass this restriction just use <AllowedAddress>*.*.*.*</AllowedAddress> to allow any IP address to log in as administrator
-->
<AdminAllowedAddresses>
<AllowedAddress>127.0.0.1</AllowedAddress>
</AdminAllowedAddresses>
<!-- Configuration of the SMTP server used for sending emails from extensions. -->
<Mailer>
<MailHost>smtp.handjoys.com</MailHost>
<MailUser>handjoys</MailUser>
<MailPass>handjoys</MailPass>
<MailPort>9</MailPort>
</Mailer>
<!-- startup modules -->
<Modules>
<Module>com.handjoys.startup.LicenseStartup</Module>
<Module>com.handjoys.startup.RDBStartup</Module>
<Module>com.handjoys.startup.ResourceStartup</Module>
<Module>com.handjoys.startup.FastDBStartup</Module>
<Module>com.handjoys.startup.AccountServerStartup</Module>
</Modules>
<!-- game components confiuration -->
<GC>
<!-- Client, World Server communication message code: number -->
<!-- Local: Key word, Single Process -->
<Bean>
<MsgCode>50000</MsgCode>
<MsgDesc>Console</MsgDesc>
<Class>com.handjoys.console.Console</Class>
<RServer>Local</RServer>
</Bean>
<Bean>
<MsgCode>11000</MsgCode>
<MsgDesc>PlayerSpirteController</MsgDesc>
<Class>com.handjoys.room.PlayerSpirteController</Class>
<RServer>Local</RServer>
</Bean>
<Bean>
<MsgCode>12000</MsgCode>
<MsgDesc>ChatService</MsgDesc>
<Class>com.handjoys.chat.ChatService</Class>
<RServer>Local</RServer>
</Bean>
<Bean>
<MsgCode>20000</MsgCode>
<MsgDesc>SpriteControl</MsgDesc>
<Class>com.handjoys.room.SpriteController</Class>
<RServer>Local</RServer>
</Bean>
<Bean>
<MsgCode>21000</MsgCode>
<MsgDesc>BuddyList</MsgDesc>
<Class>com.handjoys.room.BuddyList</Class>
<RServer>Local</RServer>
</Bean>
<Bean>
<MsgCode>22000</MsgCode>
<MsgDesc>SpriteCommerceController</MsgDesc>
<Class>com.handjoys.room.SpriteCommerceController</Class>
<RServer>Local</RServer>
</Bean>
<Bean>
<MsgCode>30000</MsgCode>
<MsgDesc>game</MsgDesc>
<Class>com.handjoys.room.GameController</Class>
<RServer>Local</RServer>
</Bean>
<Bean>
<MsgCode>31000</MsgCode>
<MsgDesc>MultiGameService</MsgDesc>
<Class>com.handjoys.games.MultiGameService</Class>
<RServer>Local</RServer>
</Bean>
<Bean>
<MsgCode>40000</MsgCode>
<MsgDesc>RoomController</MsgDesc>
<Class>com.handjoys.room.RoomController</Class>
<RServer>Local</RServer>
</Bean>
<Bean>
<MsgCode>41000</MsgCode>
<MsgDesc>SpriteComplaint</MsgDesc>
<Class>com.handjoys.complaint.SpriteComplaint</Class>
<RServer>Local</RServer>
</Bean>
</GC>
<!-- RServer: Reference Servers -->
<RServer>
<Server>
<Name>AccountServer</Name>
<Address>192.168.10.3:8000</Address>
</Server>
<Server>
<Name>WorldServer_1</Name>
<Address>192.168.10.3:8001</Address>
</Server>
<Server>
<Name>WorldServer_2</Name>
<Address>192.168.10.3:8002</Address>
</Server>
</RServer>
<!-- in memory database loading tables -->
<FastDB>
<Static>
<Entity>
<Name>Room</Name>
</Entity>
<Entity>
<Name>RoomButton</Name>
</Entity>
<Entity>
<Name>ExistSpeak</Name>
</Entity>
<Entity>
<Name>ServerInfo</Name>
</Entity>
<Entity>
<Name>GameInfo</Name>
</Entity>
<Entity>
<Name>GameKindInfo</Name>
</Entity>
<Entity>
<Name>Material</Name>
</Entity>
<Entity>
<Name>MaterialAttribute</Name>
</Entity>
<Entity>
<Name>GameCreditPop</Name>
</Entity>
<Entity>
<Name>SpriteCate</Name>
</Entity>
<Entity>
<Name>FilterSpeak</Name>
</Entity>
<Entity>
<Name>PostCard</Name>
</Entity>
</Static>
<Dynamic>
<Entity>
<Name>Buddy</Name>
<RServer>WorldServer_1, WorldServer_2</RServer>
</Entity>
<Entity>
<Name>IgnoreList</Name>
<RServer>WorldServer_1, WorldServer_2</RServer>
</Entity>
<Entity>
<Name>Player</Name>
<RServer>AccountServer</RServer>
</Entity>
<Entity>
<Name>AccountInfo</Name>
<RServer>AccountServer</RServer>
</Entity>
<Entity>
<Name>Sprite</Name>
<RServer>AccountServer,WorldServer_1, WorldServer_2</RServer>
</Entity>
<Entity>
<Name>SpriteHome</Name>
<RServer>AccountServer,WorldServer_1, WorldServer_2</RServer>
</Entity>
<Entity>
<Name>SpriteMaterial</Name>
<RServer>AccountServer,WorldServer_1, WorldServer_2</RServer>
</Entity>
</Dynamic>
<Smart>
<Entity>
<Name>SpriteMessage</Name>
<Sql>WHERE readFlag='0'</Sql>
<RServer>WorldServer</RServer>
</Entity>
</Smart>
</FastDB>
<!-- RDBMS configuration -->
<RDBMS>
<Driver>com.handjoys.mysql.jdbc.Driver</Driver>
<Url>jdbc:mysql://192.168.10.3:3306/babygame</Url>
<User>test</User>
<Pass>test</Pass>
<!-- pool size must large 2 -->
<PoolSize>2</PoolSize>
</RDBMS>
</Server>
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.