[Rev80 Bug Fix] can't learn skill, crash at startup...

Welcome in the osRose emulator Project.

Moderators: osRose dev team, ospRose dev team, osiRose dev team, Moderators

[Rev80 Bug Fix] can't learn skill, crash at startup...

Postby lmame on Tue Aug 26, 2008 9:31 am

Some people have issues with latest csv, like:
-> world server crashes at startup loading the csv,
-> impossible to learn a skill anymore, with a WARNING message in worldserver window (example for book 702):
  1. Invalid Item, Item: 702.
  2. Unknown use item type: 12037
  3. Invalid Item, Item: 702. - Type: 10


Here is a code change that should solve all those problems:
Worldserver/datatypes.h:
REPLACE:
  1. struct CProductList
  2. {
  3.     CProductData* Index[2000];
  4.     vector<CProductData*> Data;
  5.     CProductData* nullproduct;
  6. };


BY:
  1. struct CProductList
  2. {
  3.     CProductData* Index[6000];
  4.     vector<CProductData*> Data;
  5.     CProductData* nullproduct;
  6. };



This is due to the fact the prouct_data index isn't enough in osRose anymore to handle the objects.
Because the index is using the product ID and the ID stops at (in product_data.csv):
5550,12398|12092|12365|12390,1|2|1|1
5551,12398|12092|12363|12382,1|2|1|1
5552,12398|12092|12365|12382,1|2|1|1

So there was a memory overwrite that cause weird crashes.
The world is full of love and peace ^_^
Image
User avatar
lmame
Admin
Admin
 
Posts: 8997
Joined: Mon Aug 06, 2007 4:42 pm
Location: July City

Return to Support - OsRose Emulator

Who is online

Users browsing this forum: No registered users and 4 guests