Hello everyone.. I post here too in Eng Section for people who dont understand Gr and maybe can help
I get an error while creating character in my server and i get this
Could not insert char data: Parameter index out of range (38 > number of paramet
ers, which is 37).
java.sql.SQLException: Parameter index out of range (38 > number of parameters,
which is 37).
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1073)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:987)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:982)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:927)
at com.mysql.jdbc.PreparedStatement.checkBounds(PreparedStatement.java:3
729)
at com.mysql.jdbc.PreparedStatement.setInternal(PreparedStatement.java:3
713)
at com.mysql.jdbc.PreparedStatement.setInternal(PreparedStatement.java:3
755)
at com.mysql.jdbc.PreparedStatement.setDate(PreparedStatement.java:3631)
at com.mysql.jdbc.PreparedStatement.setDate(PreparedStatement.java:3600)
at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.setDate(NewProxyPr
eparedStatement.java:937)
at com.l2jserver.gameserver.model.actor.instance.L2PcInstance.createDb(L
2PcInstance.java:7545)
at com.l2jserver.gameserver.model.actor.instance.L2PcInstance.create(L2P
cInstance.java:1207)
at com.l2jserver.gameserver.network.clientpackets.CharacterCreate.runImp
l(CharacterCreate.java:184)
at com.l2jserver.gameserver.network.clientpackets.L2GameClientPacket.run
(L2GameClientPacket.java:62)
at com.l2jserver.gameserver.network.L2GameClient.run(L2GameClient.java:1
095)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source
So i go to: java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java
and i add 1 " ? " in values INSERT_CHARACTER and i get the same error again cause i didnt update the other 2 ones UPDATE_CHARACTER and RESTORE_CHARACTER ....And here is where i need help cause i dont know what to "change" in those 2....Here is my PcInstance.java
//Character Character SQL String Definitions:
private static final String INSERT_CHARACTER = "INSERT INTO characters (account_name,charId,char_name,level,maxHp,curHp,maxCp,curCp,maxMp,curMp,face,hairStyle,hairColor,sex,exp,sp,karma,fame,pvpkills,pkkills,clanid,race,classid,deletetime,cancraft,title,title_color,accesslevel,online,isin7sdungeon,clan_privs,wantspeace,base_class,newbie,nobless,power_grade,createDate) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)";
private static final String UPDATE_CHARACTER = "UPDATE characters SET level=?,maxHp=?,curHp=?,maxCp=?,curCp=?,maxMp=?,curMp=?,face=?,hairStyle=?,hairColor=?,sex=?,heading=?,x=?,y=?,z=?,exp=?,expBeforeDeath=?,sp=?,karma=?,fame=?,pvpkills=?,pkkills=?,clanid=?,race=?,classid=?,deletetime=?,title=?,title_color=?,accesslevel=?,online=?,isin7sdungeon=?,clan_privs=?,wantspeace=?,base_class=?,onlinetime=?,punish_level=?,punish_timer=?,newbie=?,nobless=?,power_grade=?,subpledge=?,lvl_joined_academy=?,apprentice=?,sponsor=?,clan_join_expiry_time=?,clan_create_expiry_time=?,char_name=?,death_penalty_level=?,bookmarkslot=?,vitality_points=?,language=? WHERE charId=?";
private static final String RESTORE_CHARACTER = "SELECT account_name, charId, char_name, level, maxHp, curHp, maxCp, curCp, maxMp, curMp, face, hairStyle, hairColor, sex, heading, x, y, z, exp, expBeforeDeath, sp, karma, fame, pvpkills, pkkills, clanid, race, classid, deletetime, cancraft, title, title_color, accesslevel, online, char_slot, lastAccess, clan_privs, wantspeace, base_class, onlinetime, isin7sdungeon, punish_level, punish_timer, newbie, nobless, power_grade, subpledge, lvl_joined_academy, apprentice, sponsor, clan_join_expiry_time,clan_create_expiry_time,death_penalty_level,bookmarkslot,vitality_points,createDate,language FROM characters WHERE charId=?";
Thanks in Regards!!!! I would appreciate and help/discuss :D
Hello mate, it's been a while since you appeared on discord, I would like your attention to finalize the ongoing project, if you see this please reply to me.
i think Interlude is better...there are lots of IL pack based on Vanganth old code in this forum,you can find it.
C5 only bugged in there.
Kameal i only know the La2world did that.
HB ,hmmm...the COEP i guess.
Verified and stable decrypter for unpacking files protected by ActiveAnticheat (AA) in Lineage 2. The utility provides direct access to game resources for modification, study, and creating your own content.
Unpacks internal game files: .dat, .u, .ukx, .usx, .ini, and others.
Batch processing: Decrypt an entire client folder at once.
Single-file decryption: For working with individual files.
Important: Antivirus programs may trigger false positives since the tool modifies files. It is recommended to add the utility to your exceptions list.
Proof of functionality:
https://youtu.be/SMSIo4aAmp4
The video clearly demonstrates the entire process: from launching the utility to successfully unpacking the files and their subsequent use.
Purchase Terms:
Price: $150
Promotion: 20% discount for the first buyer!
Payment method: USDT.
How to buy:
Contact me on Telegram: @kiselevwv for a quick response.
I will answer all your questions and provide additional information if necessary.
I guarantee functionality at the time of sale and prompt setup assistance after purchase.
Question
kryptic
Hello everyone.. I post here too in Eng Section for people who dont understand Gr and maybe can help
I get an error while creating character in my server and i get this
So i go to: java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java
and i add 1 " ? " in values INSERT_CHARACTER and i get the same error again cause i didnt update the other 2 ones UPDATE_CHARACTER and RESTORE_CHARACTER ....And here is where i need help cause i dont know what to "change" in those 2....Here is my PcInstance.java
//Character Character SQL String Definitions:
Thanks in Regards!!!! I would appreciate and help/discuss :D
Edited by kryptic2 answers to this question
Recommended Posts