Jump to content
  • 0
Brynner

[SOLVED] rAthena to Hercules

Question

i already applied all the upgrade patch.

 

but still having an error on creating character.

 

 

: DB error - Field 'char_opt' doesn't have a default value
[Debug]: at d:hercules  - high ratesrccharchar.c:1584 - INSERT INTO `char` (
`account_id`, `char_num`, `name`, `zeny`, `status_point`,`str`, `agi`, `vit`, `i
nt`, `dex`, `luk`, `max_hp`, `hp`,`max_sp`, `sp`, `hair`, `hair_color`, `last_ma
p`, `last_x`, `last_y`, `save_map`, `save_x`, `save_y`) VALUES ('2000103', '2',
'jonathanpervs', '0',  '48','1', '1', '1', '1', '1', '1', '40', '40','11', '11',
'1', '0', 'new_1-1', '53', '111', 'new_1-1', '53', '111')

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

You should adapt your databases. I'm right now in a hurry (Get to go to classes, but you can try this which seems it works. Run this onyour main Ragnarok folder AFTER making a backup:

 

---- Table structure for table `sql_updates`--CREATE TABLE IF NOT EXISTS `sql_updates` (  `timestamp` int(11) unsigned NOT NULL,  `ignored` enum('Yes','No') NOT NULL DEFAULT 'No',  PRIMARY KEY (`timestamp`)) ENGINE=MyISAM;-- Existent updates to enterINSERT INTO `sql_updates` (`timestamp`) VALUES (1360858500);INSERT INTO `sql_updates` (`timestamp`) VALUES (1360951560);INSERT INTO `sql_updates` (`timestamp`) VALUES (1362445531);INSERT INTO `sql_updates` (`timestamp`) VALUES (1362528000);INSERT INTO `sql_updates` (`timestamp`) VALUES (1362794218);INSERT INTO `sql_updates` (`timestamp`) VALUES (1364409316);---- Table differences for table `char`-- ALTER TABLE `char` CHANGE `moves` `slotchange` SMALLINT( 3 ) UNSIGNED NOT NULL DEFAULT '0',ADD `char_opt` INT( 11 ) unsigned NOT NULL default '0';

 

Databases have changed slightly, and so what I made on this other post shouldn't work. Try this one. In case it doesn't work I'll try and amend it later, but seems to work.

Share this post


Link to post
Share on other sites
  • 0

char_opt` INT( 11 ) unsigned NOT NULL default '0'

 

i edit my main sql and i add this default '0' to make it work.

Share this post


Link to post
Share on other sites
  • 0

i tried that and there is no problem regarding on sql. but when i try to make a character. character denied? i try to edit it manually and it woks now.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.