Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Silkroad Online > SRO Coding Corner
You last visited: Today at 07:26

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[C#]The Arcane Development Thread

Discussion on [C#]The Arcane Development Thread within the SRO Coding Corner forum part of the Silkroad Online category.

Reply
 
Old 10/24/2010, 16:24   #76
 
elite*gold: 0
Join Date: Aug 2010
Posts: 346
Received Thanks: 416
Quote:
Unhandled Exception: System.OverflowException: Value was either too large or too
small for an unsigned byte.
at System.Convert.ToByte(Int32 value)
at System.Convert.ToByte(Double value)
at Game.File.FileLoad.ItemDatabase(String path)
at Game.File.FileLoad.Load()
at GameServer.Program.Main(String[] args)
Wdf is this gameserver error?

offering full db for this.. the one i released is still not complete
Miki Maus is offline  
Old 10/24/2010, 16:25   #77
 
elite*gold: 0
Join Date: Feb 2008
Posts: 573
Received Thanks: 279
Quote:
Originally Posted by moldi View Post
who know what i must type in "users" table?

EDIT: I got this error when i start gameserver.exe
up .
moldi is offline  
Old 10/24/2010, 16:28   #78
 
kevin_owner's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 1,484
Received Thanks: 809
@Miki Maus those errors mean that you have wrong data types in your database

and @ modli i think that error has something to do with the config files but i'm not sure.

btw, I got a server list at the moment and i'm now busy with the login stuff.
kevin_owner is offline  
Old 10/24/2010, 16:40   #79
 
elite*gold: 0
Join Date: Aug 2010
Posts: 346
Received Thanks: 416
PHP Code:
if exists (select from dbo.sysobjects where id object_id(N'[dbo].[char_items]') and OBJECTPROPERTY(idN'IsUserTable') = 1)
drop table [dbo].[char_items]
GO

if exists (select from dbo.sysobjects where id object_id(N'[dbo].[hotkeys]') and OBJECTPROPERTY(idN'IsUserTable') = 1)
drop table [dbo].[hotkeys]
GO

if exists (select from dbo.sysobjects where id object_id(N'[dbo].[karakterler]') and OBJECTPROPERTY(idN'IsUserTable') = 1)
drop table [dbo].[karakterler]
GO

if exists (select from dbo.sysobjects where id object_id(N'[dbo].[news]') and OBJECTPROPERTY(idN'IsUserTable') = 1)
drop table [dbo].[news]
GO

if exists (select from dbo.sysobjects where id object_id(N'[dbo].[saved_skills]') and OBJECTPROPERTY(idN'IsUserTable') = 1)
drop table [dbo].[saved_skills]
GO

if exists (select from dbo.sysobjects where id object_id(N'[dbo].[server]') and OBJECTPROPERTY(idN'IsUserTable') = 1)
drop table [dbo].[server]
GO

if exists (select from dbo.sysobjects where id object_id(N'[dbo].[serverlar]') and OBJECTPROPERTY(idN'IsUserTable') = 1)
drop table [dbo].[serverlar]
GO

if exists (select from dbo.sysobjects where id object_id(N'[dbo].[users]') and OBJECTPROPERTY(idN'IsUserTable') = 1)
drop table [dbo].[users]
GO

CREATE TABLE 
[dbo].[char_items] (
    [
owner] [varchar] (50COLLATE Turkish_CI_AS NULL ,
    [
itemnumber] [intNULL ,
    [
quantity] [intNULL ,
    [
itemid] [intNULL ,
    [
type] [intNULL ,
    [
slot] [intNULL ,
    [
inavatar] [intNULL 
ON [PRIMARY]
GO

CREATE TABLE 
[dbo].[hotkeys] (
    [
id] [intIDENTITY (11NOT NULL ,
    [
owner] [varchar] (15COLLATE Turkish_CI_AS NOT NULL ,
    [
slot] [intNOT NULL ,
    [
type] [intNOT NULL ,
    [
hotkeyid] [intNOT NULL 
ON [PRIMARY]
GO

CREATE TABLE 
[dbo].[karakterler] (
    [
id] [intIDENTITY (11NOT NULL ,
    [
account] [varchar] (20COLLATE Turkish_CI_AS NULL ,
    [
name] [varchar] (45COLLATE Turkish_CI_AS NULL ,
    [
chartype] [intNULL ,
    [
volume] [intNULL ,
    [
level] [intNULL ,
    [
strength] [intNULL ,
    [
intelligence] [intNULL ,
    [
attribute] [intNULL ,
    [
hp] [intNULL ,
    [
mp] [intNULL ,
    [
s_hp] [intNULL ,
    [
s_mp] [intNULL ,
    [
gold] [intNULL ,
    [
experience] [intNULL ,
    [
sp] [intNULL ,
    [
gm] [intNULL ,
    [
xsect] [intNULL ,
    [
ysect] [intNULL ,
    [
xpos] [intNULL ,
    [
ypos] [intNULL ,
    [
zpos] [intNULL ,
    [
min_phyatk] [intNULL ,
    [
max_phyatk] [intNULL ,
    [
min_magatk] [intNULL ,
    [
max_magatk] [intNULL ,
    [
phydef] [intNULL ,
    [
magdef] [intNULL ,
    [
hit] [intNULL ,
    [
parry] [intNULL ,
    [
walkspeed] [intNULL ,
    [
runspeed] [intNULL ,
    [
berserkspeed] [intNULL ,
    [
berserkbar] [intNULL ,
    [
skillpointbar] [intNULL ,
    [
berserking] [intNULL ,
    [
pvp] [intNULL ,
    [
maxitemslot] [intNULL 
ON [PRIMARY]
GO

CREATE TABLE 
[dbo].[news] (
    [
head] [char] (10COLLATE Turkish_CI_AS NULL 
ON [PRIMARY]
GO

CREATE TABLE 
[dbo].[saved_skills] (
    [
owner] [varchar] (50COLLATE Turkish_CI_AS NULL ,
    [
AmountSkill] [intNULL ,
    [
Skill] [varchar] (50COLLATE Turkish_CI_AS NULL ,
    [
skillid] [intNULL 
ON [PRIMARY]
GO

CREATE TABLE 
[dbo].[server] (
    [
id] [intNOT NULL ,
    [
serverid] [intNOT NULL ,
    [
name] [varchar] (50COLLATE Turkish_CI_AS NOT NULL ,
    [
users_current] [intNOT NULL ,
    [
users_max] [intNOT NULL ,
    [
state] [intNOT NULL ,
    [
ip] [varchar] (50COLLATE Turkish_CI_AS NOT NULL ,
    [
port] [intNOT NULL ,
    [
status] [intNOT NULL 
ON [PRIMARY]
GO

CREATE TABLE 
[dbo].[serverlar] (
    [
serverid] [intNULL ,
    [
name] [char] (16COLLATE Turkish_CI_AS NULL ,
    [
user_current] [char] (10COLLATE Turkish_CI_AS NULL 
ON [PRIMARY]
GO

CREATE TABLE 
[dbo].[users] (
    [
id] [intIDENTITY (11NOT NULL ,
    [
username] [varchar] (20COLLATE Turkish_CI_AS NULL ,
    [
password] [varchar] (20COLLATE Turkish_CI_AS NULL ,
    [
blocked] [bitNULL ,
    [
connected] [bitNULL ,
    [
online] [char] (10COLLATE Turkish_CI_AS NULL 
ON [PRIMARY]
GO 
Cry noobs, need to fix some kind of values there.. that's my version of db..
Miki Maus is offline  
Old 10/24/2010, 16:47   #80
 
elite*gold: 0
Join Date: Sep 2009
Posts: 520
Received Thanks: 435
@Miki Maus
There is no hotkeys, serverlar table :P this tables are there:

Quote:
char_items
karakterler
users
mastery
saved_skills
server
news
storage_items
CraYu is offline  
Thanks
1 User
Old 10/24/2010, 16:49   #81
 
kevin_owner's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 1,484
Received Thanks: 809
Indeed and use smallint and tinyint data types to solve some problems at least i'd to use those types
kevin_owner is offline  
Old 10/24/2010, 17:00   #82
 
elite*gold: 0
Join Date: Aug 2010
Posts: 346
Received Thanks: 416
Quote:
Originally Posted by HeavyLegend View Post
@Miki Maus
There is no hotkeys, serverlar table :P this tables are there:
well i didnt create this db alone, i kinda just completed it lmao, part of it is created by that turk guy..

Btw could u try to fix up the db?
Miki Maus is offline  
Old 10/24/2010, 17:09   #83
 
kevin_owner's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 1,484
Received Thanks: 809
@Miki Maus
My server table looks like this


this works for me.
btw i have no idea what the first column does but it works
kevin_owner is offline  
Thanks
2 Users
Old 10/24/2010, 17:33   #84
 
elite*gold: 0
Join Date: Aug 2010
Posts: 346
Received Thanks: 416
Quote:
Originally Posted by kevin_owner View Post
@Miki Maus
My server table looks like this


this works for me.
btw i have no idea what the first column does but it works
well thanks for this, now just need to get done the other ones -.-
Miki Maus is offline  
Old 10/24/2010, 18:09   #85
 
elite*gold: 0
Join Date: Feb 2008
Posts: 573
Received Thanks: 279
What is the data type of online column from users table?
moldi is offline  
Old 10/24/2010, 18:13   #86
 
elite*gold: 0
Join Date: Sep 2009
Posts: 520
Received Thanks: 435
Fixed the "news" table...



CraYu is offline  
Old 10/24/2010, 18:15   #87
 
elite*gold: 0
Join Date: Feb 2008
Posts: 573
Received Thanks: 279
Quote:
Originally Posted by HeavyLegend View Post
Fixed the "news" table...

show me u`r 'users' table please.
moldi is offline  
Old 10/24/2010, 18:24   #88
 
kevin_owner's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 1,484
Received Thanks: 809
I don't know if this will help but this is my users table:



This isn't correct and it returns an error when it checks if the user is banned and if there already is an connection.

but this might help some people.

btw id = username. so not a numeric id.
kevin_owner is offline  
Thanks
2 Users
Old 10/24/2010, 22:26   #89
 
ruancarlosbr's Avatar
 
elite*gold: 0
Join Date: Oct 2008
Posts: 54
Received Thanks: 2
tables

usuários
0 -> Int32 AccountID
1 -> seqüência de nome de usuário
2 -> string Senha
3 -> byte Banido
4 -> Obter bytes online
6 -> Silk Int32
7 -> Gold Int64



servidor
1 -> ID Int16
String Nome> - 2
3 - users_current>?
4 -> Int16 maxplayers
5 -> Byte Estado
6 -> String IP
7 -> Porta Int16
8 -> Tipo Byte (???)
ruancarlosbr is offline  
Old 10/24/2010, 22:34   #90
 
kevin_owner's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 1,484
Received Thanks: 809
Quote:
Originally Posted by ruancarlosbr View Post
usuários
0 -> Int32 AccountID
1 -> seqüência de nome de usuário
2 -> string Senha
3 -> byte Banido
4 -> Obter bytes online
6 -> Silk Int32
7 -> Gold Int64



servidor
1 -> ID Int16
String Nome> - 2
3 - users_current>?
4 -> Int16 maxplayers
5 -> Byte Estado
6 -> String IP
7 -> Porta Int16
8 -> Tipo Byte (???)
that's right.
i've the same thing. the only thing what happend to me is an error that there is already an sqlreader thingy open so i'd to make that checkcrowd function comment(which isn't a big deal cuz a few lines after that check it checks again if the server is crowed) but the only problem i have is C9 xD and my ports are all correct. Well they probably won't cuz i'm getting that c9
kevin_owner is offline  
Reply


Similar Threads Similar Threads
[Development]Arcane Files
10/22/2010 - SRO Coding Corner - 4 Replies
Hi guys what happened on the other thread and i rlly don`t like this i decided to open new thread without spams flams trolls etc this is arcane leaked server files but without db we`re trying to make the db any way download from From Here:MEGAUPLOAD - The leading online storage and file delivery service Hope you like it Lets Be Fair and give the real credits
[LEAKED] Arcane Source Code [for Development only]
10/22/2010 - SRO Coding Corner - 136 Replies
Hi, So have fun :) There alot of File which are missed. But you can see all Packets and .. You cant run that files. Because they are incomplete. You can make youre own Emulator you can see all Packets and Importent Informations. Look at : Game/Packets/Public.cs Game/Packets/Private.cs Loginserver isnt there. I think we dont need Packets from an LoginServer.



All times are GMT +1. The time now is 07:27.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.