![]() |
mysql errors - Printable Version +- Mirage Source (https://mirage-engine.uk/forums) +-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61) +--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18) +---- Forum: Source Code Development (https://mirage-engine.uk/forums/forumdisplay.php?fid=51) +----- Forum: Mirage Source 3.x.x, MSx (https://mirage-engine.uk/forums/forumdisplay.php?fid=45) +----- Thread: mysql errors (/showthread.php?tid=1538) |
mysql errors - swya - 31-01-2008 Every time I try to start the server after setting up the database I get an error: Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record. I get this if I use the sql_dump in the sticky or the sql dump that comes with the source. The line that is highlighted if I use the dump from the sticky is .FKey = CLng(RS("FKey")) Any insight would be appreciated. Thanks Re: mysql errors - Dragoons Master - 31-01-2008 This is how your subs need to look like: Code: Dim RS As ADODB.Recordset Re: mysql errors - swya - 31-01-2008 Where should that declaration be though? Re: mysql errors - swya - 01-02-2008 Hi again. I appreciated the fast response before. I found that I had declared RS like you did, but it fails in this block of code: Code: For I = 1 To MAX_MAPS On the line .FKey = CLng(RS("FKey")) I am not sure what variable you were suggesting to set it equal to... Any further help would be much appreciated again. Thanks, swya Re: mysql errors - swya - 01-02-2008 Upon more investigation, if I change For I = 1 To MAX_MAPS to For I = 1 To 5 (because there are five maps in the database) it doesn't crash. I hope maybe this will shed some light as well. Re: mysql errors - Dragoons Master - 01-02-2008 You need to have the maps... I was assuming your database were full, I mean, it was full of data, but it appears to not be. Do that and it will work. Re: mysql errors - swya - 01-02-2008 I used the SQL dump that was available... Is there an alternate sql dump that will fill the database? Thanks again, your speedy responses are very impressive in a support forum. swya Re: mysql errors - Dragoons Master - 01-02-2008 I made my own xD Work with this: Code: Public Function GetRecordCount(dbTable As String, Optional WH As String = "0") As Long Re: mysql errors - swya - 03-02-2008 I spent some time on this, but I couldn't get this working. I'm still getting the exact same error during compiling. Re: mysql errors - Dragoons Master - 03-02-2008 You need to fill the data. You can't have null on every data, just fill the data with zero or null_string/" ", something like that but make the fkey values correct. And when you add new record, I mean, client side, using the editor, don't add a new record, just update the old one. Re: mysql errors - swya - 03-02-2008 So to use the mysql version, you have to have an entirely full database? Re: mysql errors - Dragoons Master - 03-02-2008 Yes ^^ That's pain is the ass, but it works great. Btw, accounts and characters don't, obviously xD Re: mysql errors - swya - 03-02-2008 I have resolved the issue by adding the following: Code: Set RS = New ADODB.Recordset then instead of Code: For I = 1 To MAX_SHOPS I used Code: For I = 1 To ShopCount This way it seems to try to only load what exists already in the database. Of course I modified Shops, NPCs, Maps et cetera individually, but it is the same code with just a minor adjustment to the query. Re: mysql errors - Dragoons Master - 03-02-2008 It works also, but then, if you add item 1 and item 3, only, when you load the server it will try to load item 1 and 2 instead of item 1 and 3... EDIT: nono, it will load item 3 into item 2, I think that's it. Re: mysql errors - swya - 03-02-2008 This should be all right unless an item is deleted? Is that correct? Re: mysql errors - Dragoons Master - 03-02-2008 Well, in theory yes...but I really think it's better if you fill the data base... |