These are chat archives for ikkentim/SampSharp

8th
Jun 2016
Tim Potze
@ikkentim
Jun 08 2016 07:04 UTC
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
Florian van Dillen
@fvandillen
Jun 08 2016 15:24 UTC
In that case, i'd be happy to have it in my gamemode, could you pastebin it by any chance @BryanHitchcock ?
:D
SomeDevil
@SomeDevil
Jun 08 2016 16:23 UTC
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
iirc it worked fine in 6.2
Tim Potze
@ikkentim
Jun 08 2016 16:25 UTC
You either need to register the type from a controller, or add the [PooledType] attribute to the class
SomeDevil
@SomeDevil
Jun 08 2016 16:26 UTC
oh well, yes, i had a typo Vehicle.Register<BaseVehicle>();
SomeDevil
@SomeDevil
Jun 08 2016 16:58 UTC
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?
Tim Potze
@ikkentim
Jun 08 2016 17:01 UTC
I changed a bunch of stuff to do with dialogs
check for a file named sampsharp_errors.log or something in your server directory
SomeDevil
@SomeDevil
Jun 08 2016 17:06 UTC
sadly it doesn't log error there

crashinfo.txt shows


SA-MP Server: 0.3.7-R2

Exception At Address: 0x627B3FCC Module: (SampSharp.DLL)

Tim Potze
@ikkentim
Jun 08 2016 17:06 UTC
Hmm :/ this needs some proper debugging
SomeDevil
@SomeDevil
Jun 08 2016 17:22 UTC
[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
Tim Potze
@ikkentim
Jun 08 2016 17:39 UTC
Ah thanks, a string conversion bug :/ Will look into it
BryanHitchcock
@BryanHitchcock
Jun 08 2016 17:56 UTC
@fvandillen Here you go http://pastebin.com/fXM2tpfF
This message was deleted
I made another program in C# to convert all the zones from PAWN to C# for me, I wasn't going to type all that shit out by hand
Tim Potze
@ikkentim
Jun 08 2016 19:17 UTC
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
BryanHitchcock
@BryanHitchcock
Jun 08 2016 19:18 UTC
want me to add the zones class to the utilities?
it works perfectly I just tested it
Tim Potze
@ikkentim
Jun 08 2016 19:19 UTC
The repository is empty currently :( Won't be working in it yet, currently writing my final papers for school, deadline of concept is tomorrow
BryanHitchcock
@BryanHitchcock
Jun 08 2016 19:19 UTC
oh ok np
Tim Potze
@ikkentim
Jun 08 2016 19:20 UTC
But thanks for the effort :) Hope to get to work on it in 3-4 weeks if everything goes all right
BryanHitchcock
@BryanHitchcock
Jun 08 2016 19:20 UTC
just let me know when it's up so I can add it
alright :)
I wish Rockstar wasn't so dumb and shutdown GTA V MP :(
RP on that game would be so dope
Tim Potze
@ikkentim
Jun 08 2016 19:20 UTC
Yea
On the other side it might be good for sa-mp haha
Still it would have been fun ,yea
BryanHitchcock
@BryanHitchcock
Jun 08 2016 19:21 UTC
Yeah, but I feel like it's so hard to start a server in 2016.
I still wan't to make a game mode just for fun, but still.
Tim Potze
@ikkentim
Jun 08 2016 19:21 UTC
Yea, it's just that I know a bunch of people are dying for me to start a server again
BryanHitchcock
@BryanHitchcock
Jun 08 2016 19:22 UTC
An RP one or..?
Tim Potze
@ikkentim
Jun 08 2016 19:22 UTC
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)
BryanHitchcock
@BryanHitchcock
Jun 08 2016 19:22 UTC
ah
Tim Potze
@ikkentim
Jun 08 2016 19:23 UTC
CnR with more jobs, and slight tine RP touches
BryanHitchcock
@BryanHitchcock
Jun 08 2016 19:23 UTC
I've never had my own before, just played on SARP and LSRP
Tim Potze
@ikkentim
Jun 08 2016 19:23 UTC
LSRES was its name (and will be it's name when it returns)
BryanHitchcock
@BryanHitchcock
Jun 08 2016 19:23 UTC
but I see a ton of flaws in their script (especially SARP lmao), so I thought why not make my own GM from scratch
I was discouraged to because I HATE PAWN, but then I found Samp# :)
ah I see
Tim Potze
@ikkentim
Jun 08 2016 19:24 UTC
I started on my god aweful gamemode when I was 12, all in one file, 80k lines, np. What a hell when you know what OO heaven looks like
BryanHitchcock
@BryanHitchcock
Jun 08 2016 19:24 UTC
I know right
I can actually find things using C#
PAWN is just aids
Tim Potze
@ikkentim
Jun 08 2016 19:25 UTC
It's a good starter
BryanHitchcock
@BryanHitchcock
Jun 08 2016 19:25 UTC
yeah
but for a complex server, it's very bad
Tim Potze
@ikkentim
Jun 08 2016 19:25 UTC
but once you move on to a proper language you kinda don't want to go back
BryanHitchcock
@BryanHitchcock
Jun 08 2016 19:25 UTC
Yeah for sure
That's the only reason why I'm making a GM now, if I couldn't work in C# then I wouldn't be making one right now
Tim Potze
@ikkentim
Jun 08 2016 19:26 UTC
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#
Anyhow, I need to get back to work
I'm distracting myself too much, lol
BryanHitchcock
@BryanHitchcock
Jun 08 2016 19:27 UTC
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).
My bad, do your homework :P
Nice talking to you though
Tim Potze
@ikkentim
Jun 08 2016 19:28 UTC
np :) I should be done with my bachelor in software engineering in a few weeks, hope to start a master in software engineering after the summer
BryanHitchcock
@BryanHitchcock
Jun 08 2016 19:29 UTC
Congratulations!! Good luck :)
Tim Potze
@ikkentim
Jun 08 2016 19:29 UTC
Thanks :)