Re: [DEV] .NET for SA:MP (VB.NET, C#) -
Marty_Alex - 01.01.2011
Same here
Re: [DEV] .NET for SA:MP (VB.NET, C#) -
iLinx - 01.01.2011
Quote:
Originally Posted by Maikel
The syntax off VB.NET is nothing wrong, it's handy and clear.
|
vb and vb.net within itself is atrocious, the syntax is just another shitty feature. C++ / C# / Objective C, Python, Java, etc I understand, but vb is just a massive waste of time (imo obviously, don't go flaming me).
Good work with C# however, I look forward to it.
Re: [DEV] .NET for SA:MP (VB.NET, C#) -
jaymac407 - 02.01.2011
Alpha 1 released.
Re: [DEV] .NET for SA:MP (VB.NET, C#) -
Donny_k - 02.01.2011
I get a server crash after pressing any of the dialog buttons (alpha message one):
Quote:
[03:21:09] [join] Player has joined the server (0:127.0.0.1)
[03:21:11] Couldn't find delegate to handle response event. Ignoring...
[03:21:15] [chat] [Player]: lkjlksdjf
|
The chat you see there was me testing if I was connected before I pressed the dialog to make sure it was indeed due to pressing it and not a timeout issue.
Also in my server window but not the log I get a message about both the netAPI and the Script libs not having entry points.
Any guesses ? I understand it's an alpha so no rush in correcting it or whatever.
PS. There's no source from what I see, anything released here requires the source code to be released with it, just thought I'd let you know incase you didn't dude.
Edit:
Also where does that dialog message come from, I don't see it in the script I'm using (blank example), I assume I could fix it by adding a handler but I don't know the objects (dialog) id.
Re: [DEV] .NET for SA:MP (VB.NET, C#) -
Donny_k - 02.01.2011
My bad, I hit the quote instead of edit button.
Re: [DEV] .NET for SA:MP (VB.NET, C#) -
jaymac407 - 02.01.2011
Quote:
Originally Posted by Donny_k
I get a server crash after pressing any of the dialog buttons (alpha message one):
The chat you see there was me testing if I was connected before I pressed the dialog to make sure it was indeed due to pressing it and not a timeout issue.
Also in my server window but not the log I get a message about both the netAPI and the Script libs not having entry points.
Any guesses ? I understand it's an alpha so no rush in correcting it or whatever.
PS. There's no source from what I see, anything released here requires the source code to be released with it, just thought I'd let you know incase you didn't dude.
Edit:
Also where does that dialog message come from, I don't see it in the script I'm using (blank example), I assume I could fix it by adding a handler but I don't know the objects (dialog) id.
|
Ignore the entry point thing, it's not important. Source will be released after alpha versions.
The dialog message comes from the API interally and currently (until end of alpha series) cannot be removed.
Regarding the crashing, what OS are you running it on?
Re: [DEV] .NET for SA:MP (VB.NET, C#) -
Donny_k - 02.01.2011
Cheers for the quick reply.
I'm running Win7 x64 dude, latest server/client (just downloaded them tonight), SA 1.0, NET 4.0, VS 2010 express to compile example, no other scripts (filters/plugins etc).
Re: [DEV] .NET for SA:MP (VB.NET, C#) -
jaymac407 - 02.01.2011
Anyone else getting this?
Re: [DEV] .NET for SA:MP (VB.NET, C#) -
Mr187 - 02.01.2011
Quote:
Originally Posted by Hiddos
This might be a nice opportunity for me to learn more about other programming languages, I'm sure to try this out!
|
What he said ^^
Re: [DEV] .NET for SA:MP (VB.NET, C#) -
billiout - 02.01.2011
how can i load the gm? where to put the gm dll? thanks
Re: [DEV] .NET for SA:MP (VB.NET, C#) -
hencz - 02.01.2011
Here's what get when I press spawn button:
Re: [DEV] .NET Scripthook for SA-MP (VB.NET, C#) -
hencz - 02.01.2011
Quote:
Originally Posted by jaymac407
I need to know what natives to implement as a matter of priority. The goal is to implement them all, but I'd like some structure to it.
|
- I think it would be better to have an abstract class for SAMP.Script with virtual functions rather than an Interfce so we won't have to override all sa-mp callbacks.
- Also would be good to have a Vector3 struct with X Y Z coordinates (thus we can do mathematical operations on coordinates like Vector3.Dot...etc) instead of using 3 floats.
- In C# you can write floats as 1958.3783f, 1343.1572f...
Re: [DEV] .NET for SA:MP (VB.NET, C#) -
TheArcher - 02.01.2011
Quote:
Originally Posted by hencz
Here's what get when I press spawn button:
|
Make sure you have the last Net Framework installed on your PC.
P.S Nice work dude. I want to see more from this.
Re: [DEV] .NET for SA:MP (VB.NET, C#) -
Maikel - 02.01.2011
What about a little tut so I know how to set up the plugin and create a gamemode in Visual Studio?
Re: [DEV] .NET for SA:MP (VB.NET, C#) -
hencz - 02.01.2011
Quote:
Originally Posted by Anthony_prince
Make sure you have the last Net Framework installed on your PC.
|
I do. It's nothing to do with the .net framework version
Re: [DEV] .NET for SA:MP (VB.NET, C#) -
jaymac407 - 02.01.2011
Quote:
Originally Posted by hencz
Here's what get when I press spawn button:
|
Cheers, I know what the error is now. Will be fixed soon. Partially caused by me including an old dll :S
Quote:
Originally Posted by hencz
- I think it would be better to have an abstract class for SAMP.Script with virtual functions rather than an Interfce so we won't have to override all sa-mp callbacks.
- Also would be good to have a Vector3 struct with X Y Z coordinates (thus we can do mathematical operations on coordinates like Vector3.Dot...etc) instead of using 3 floats.
- In C# you can write floats as 1958.3783f, 1343.1572f...
|
Yeah, that sounds like a good idea to me. An interface may be messy when I implement more callbacks.
Re: [DEV] .NET for SA:MP (VB.NET, C#) -
jaymac407 - 02.01.2011
Alpha 2 Released:
- Improved GC code
- Fixed NULL instance problems, invoking .NET problems.
Re: [DEV] .NET for SA:MP (VB.NET, C#) -
jaymac407 - 02.01.2011
Quote:
Originally Posted by Maikel
What about a little tut so I know how to set up the plugin and create a gamemode in Visual Studio?
|
When it's out of the alpha stage
Re: [DEV] .NET for SA:MP (VB.NET, C#) -
hencz - 02.01.2011
Quote:
Originally Posted by jaymac407
Alpha 2 Released:
- Improved GC code
- Fixed NULL instance problems, invoking .NET problems.
|
Thanks. It works now.
A few more suggestions if you don't mind:
- The colors we use in pawn (eg. 0xFF3355FF) are of the type uint not int. This is important because the max value of an int (System.Int32) is 0x7FFFFFFF
- It would be good to have a Color struct. I made one in C#: pastebin
Cheers
Re: [DEV] .NET for SA:MP (VB.NET, C#) -
Maikel - 02.01.2011
Quote:
Originally Posted by jaymac407
When it's out of the alpha stage
|
I would love it to test it now.