I may want to keep the gamemode project purely the basic things. But I had plans for an additional library with utilities such as these and for example, the progress bar code I've got
why can't i cast my custom Vehicle class to BaseVehicle? my class is derived "public class Vehicle : BaseVehicle" but (Vehicle)BaseVehicle.Create(model, player.Position + new Vector3(0, 0, 0.5f), player.Rotation.Z, -1, -1) throws an exception
my server just crashes when i choose item from in ListDialog and creates crashinfo file in server directory, is there any way to debug this kind of stuff? and did you change something in 7.0 regarding to dialogs?
[20:21:38] [debug] Server crashed due to an unknown error [20:21:38] [debug] Native backtrace: [20:21:38] [debug] #0 62403fcc in GameMode::StringToMonoString () from plugins\SampSharp.DLL [20:21:38] [debug] #1 624031ca in GameMode::ProcessPublicCall () from plugins\SampSharp.DLL [20:21:38] [debug] #2 6244c140 in OnPublicCall () from plugins\SampSharp.DLL [20:21:38] [debug] #3 624454ff in sampgdk_callback_invoke () from plugins\SampSharp.DLL [20:21:38] [debug] #4 6241dd40 in _sampgdk_amxhooks_Exec () from plugins\SampSharp.DLL [20:21:38] [debug] #5 62274509 in ?? () from plugins\streamer.DLL [20:21:38] [debug] #6 0046ec31 in ?? () from samp-server.exe [20:21:38] [debug] #7 00452270 in ?? () from samp-server.exe [20:21:38] [debug] #8 0046e8d0 in ?? () from samp-server.exe [20:21:38] [debug] #9 0048f6ab in ?? () from samp-server.exe [20:21:38] [debug] #10 0045856c in ?? () from samp-server.exe [20:21:38] [debug] #11 0045ad2a in ?? () from samp-server.exe [20:21:38] [debug] #12 6244b44b in ProcessSignals () from plugins\SampSharp.DLL [20:21:38] [debug] #13 02945b70 in ?? () [20:21:38] [debug] #14 029500a0 in ?? () [20:21:38] [debug] #15 02950130 in ?? () crashdetect shows me this, but I don't actually know what it is :D
I've create two repositories I'll be populating over the summer: ikkentim/SampSharp-mockery and ikkentim/SampSharp-utilities ; mockery will contain tools for proper unit testing of game modes ; utilities will contain all sorts of cool stuff
I once had one, and a whole community, but it kinda fell apart due to a lack of time, staff having problems with me being inactive (I don't blame them)
Near the end of my servers lifetime I wanted to rewrite my gamemode, properly. I had a "class like" file/function structure going, but it was still not what I wanted. In the meanwhile the server fell apart, next thing I knew I was working on samp#
Yeah I'm really impressed so far. I'm still not very knowledgeable (18, going to university this fall for CmpSci), however I absolutely love C# compared to the other languages (C++, etc).