SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Plugin Development

Reply
 
Thread Tools Display Modes
Old 17/05/2014, 09:16 AM   #21
Lorenc_
High-roller
 
Lorenc_'s Avatar
 
Join Date: Jan 2010
Location: Australia
Posts: 4,291
Reputation: 1094
Default Re: SampSharp - Write gamemodes in .NET

Looks neat. Nice job.
Lorenc_ is offline   Reply With Quote
Old 24/05/2014, 02:24 PM   #22
CoaPsyFactor
Gangsta
 
Join Date: Jul 2010
Location: Belgrade, Serbia
Posts: 866
Reputation: 47
Default Re: SampSharp - Write gamemodes in .NET

Call me noob, but I am not able to open RiverShell as project
__________________
Quote:
Originally Posted by ThaiLuan View Post
Code:
C:\Users\Administrator\Downloads\Viet-RP\gamemodes\3mien.pwn(112016) : fatal error 101: cannot write to file: "disk full"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
Help me! How to fix error
CoaPsyFactor is offline   Reply With Quote
Old 24/05/2014, 02:55 PM   #23
ikkentim
High-roller
 
ikkentim's Avatar
 
Join Date: Jan 2010
Location: Kampen, The Netherlands
Posts: 1,075
Reputation: 181
Default Re: SampSharp - Write gamemodes in .NET

Quote:
Originally Posted by CoaPsyFactor View Post
Call me noob, but I am not able to open RiverShell as project
If you tell me what happens when you open it, I'll be able to help you.
__________________
Greetings,
Tim Potze

On vacation August 2nd to September 1st

Projects
GAMEDEV | Part-time developer working on Parkitect. | Steampage
LSRES | A SA:MP server from the past, and hopefully, back in the future.
SampSharp | Plugin for writing SA:MP gamemodes in C#. | Topic Website Github
SanMap | San Andreas in Google Maps! | Topic Github Sample
ikkentim is offline   Reply With Quote
Old 09/06/2014, 05:11 PM   #24
carlo rizzi
Little Clucker
 
Join Date: Dec 2006
Posts: 26
Reputation: 0
Default Re: SampSharp - Write gamemodes in .NET

I have a problem with the .config file. Basicly i want to implement EntityFramework with MySql. For some reason MySql is trying to open the configuration and crashes. I've tested same code in standalone application and it works. Have you got EntityFramework to work with your code? Do you use .config file?
carlo rizzi is offline   Reply With Quote
Old 09/06/2014, 06:16 PM   #25
ikkentim
High-roller
 
ikkentim's Avatar
 
Join Date: Jan 2010
Location: Kampen, The Netherlands
Posts: 1,075
Reputation: 181
Default Re: SampSharp - Write gamemodes in .NET

Quote:
Originally Posted by carlo rizzi View Post
I have a problem with the .config file. Basicly i want to implement EntityFramework with MySql. For some reason MySql is trying to open the configuration and crashes. I've tested same code in standalone application and it works. Have you got EntityFramework to work with your code? Do you use .config file?
Checking it out, will edit this post when i know more.

Edit: It's because the way mono works with configurations and EntityFramework. It can be solved and I am writing an example project using EntityFramework. Expect it in a few days (currently busy with my final days of work for my current schoolyear)
__________________
Greetings,
Tim Potze

On vacation August 2nd to September 1st

Projects
GAMEDEV | Part-time developer working on Parkitect. | Steampage
LSRES | A SA:MP server from the past, and hopefully, back in the future.
SampSharp | Plugin for writing SA:MP gamemodes in C#. | Topic Website Github
SanMap | San Andreas in Google Maps! | Topic Github Sample

Last edited by ikkentim; 10/06/2014 at 03:42 PM.
ikkentim is offline   Reply With Quote
Old 19/06/2014, 09:10 PM   #26
Joe_Morito
Little Clucker
 
Join Date: Apr 2012
Location: Germany
Posts: 4
Reputation: 0
Exclamation AW: SampSharp - Write gamemodes in .NET

I found a bug when receiving a OnDialogResponse and OnPlayerText from the plugin, it seems to only submit the second character of the string when it's not the first player on the server. For example:

- player (0) joins
- player (0) writes "test" -> gamemode receives "test"
- player (1) joins
- player (1) writes "test" -> gamemode receives "e"
- player (0) writes "does it work?" -> gamemode receives "does it work?"
- player (1) writes "no " -> gamemode receives "o"

Further when a player disconnects or something i get exceptions when the Dialog class tries to access the dictionary OpenDialogs with unexisting keys.

Looking forward for fixes, or maybe i'm using it wrong somehow.

Great work there, keep going


Edit: Also, how can i use characters like ,,,,,,,... ?
Joe_Morito is offline   Reply With Quote
Old 20/06/2014, 10:25 AM   #27
ikkentim
High-roller
 
ikkentim's Avatar
 
Join Date: Jan 2010
Location: Kampen, The Netherlands
Posts: 1,075
Reputation: 181
Default Re: AW: SampSharp - Write gamemodes in .NET

Quote:
Originally Posted by Joe_Morito View Post
I found a bug when receiving a OnDialogResponse and OnPlayerText from the plugin, it seems to only submit the second character of the string when it's not the first player on the server. For example:

- player (0) joins
- player (0) writes "test" -> gamemode receives "test"
- player (1) joins
- player (1) writes "test" -> gamemode receives "e"
- player (0) writes "does it work?" -> gamemode receives "does it work?"
- player (1) writes "no " -> gamemode receives "o"

Further when a player disconnects or something i get exceptions when the Dialog class tries to access the dictionary OpenDialogs with unexisting keys.

Looking forward for fixes, or maybe i'm using it wrong somehow.

Great work there, keep going
Interesting issue. I've only yet tested the plugin with one player. I'll check this issue soon.

Quote:
Edit: Also, how can i use characters like ,,,,,,,... ?
Should work afaik
__________________
Greetings,
Tim Potze

On vacation August 2nd to September 1st

Projects
GAMEDEV | Part-time developer working on Parkitect. | Steampage
LSRES | A SA:MP server from the past, and hopefully, back in the future.
SampSharp | Plugin for writing SA:MP gamemodes in C#. | Topic Website Github
SanMap | San Andreas in Google Maps! | Topic Github Sample
ikkentim is offline   Reply With Quote
Old 20/06/2014, 01:46 PM   #28
Joe_Morito
Little Clucker
 
Join Date: Apr 2012
Location: Germany
Posts: 4
Reputation: 0
Default AW: Re: AW: SampSharp - Write gamemodes in .NET

Quote:
Originally Posted by ikkentim View Post
Should work afaik
Sadly it doesn't. Also when i try to use \x81 or something, the client receives something else.

Also a suggestion, maybe you can implement command groups and subgroups. I did it by my own now, but it would be a nice thing if it was implemented in your api.


Greets
Joe_Morito is offline   Reply With Quote
Old 20/06/2014, 01:56 PM   #29
ikkentim
High-roller
 
ikkentim's Avatar
 
Join Date: Jan 2010
Location: Kampen, The Netherlands
Posts: 1,075
Reputation: 181
Default Re: AW: Re: AW: SampSharp - Write gamemodes in .NET

Quote:
Originally Posted by Joe_Morito View Post
Sadly it doesn't. Also when i try to use \x81 or something, the client receives something else.

Also a suggestion, maybe you can implement command groups and subgroups. I did it by my own now, but it would be a nice thing if it was implemented in your api.


Greets
Ill check what the issue is.

By command groups, what do you mean, something to check permissions? Something to group them by for a /help command?
__________________
Greetings,
Tim Potze

On vacation August 2nd to September 1st

Projects
GAMEDEV | Part-time developer working on Parkitect. | Steampage
LSRES | A SA:MP server from the past, and hopefully, back in the future.
SampSharp | Plugin for writing SA:MP gamemodes in C#. | Topic Website Github
SanMap | San Andreas in Google Maps! | Topic Github Sample
ikkentim is offline   Reply With Quote
Old 20/06/2014, 03:01 PM   #30
Joe_Morito
Little Clucker
 
Join Date: Apr 2012
Location: Germany
Posts: 4
Reputation: 0
Default AW: Re: AW: Re: AW: SampSharp - Write gamemodes in .NET

Quote:
Originally Posted by ikkentim View Post
Ill check what the issue is.

By command groups, what do you mean, something to check permissions? Something to group them by for a /help command?
A part of my command stucture:

/help (alias: h, shortcut: 0)
/admin (is a group, alias: a)
/admin toggle (alias: t, shortcut: 1)
/admin teleportation (is a group, alias: tp)
/admin teleportation coords (alias: c, shortcut: 2)
/admin teleportation fetchplayer (alias: fp, shortcut: 3)
/admin teleportation player (alias: p, shortcut 4)
...

For example, if you want to teleport yourself to specific coords, you can use any of the following:
/admin teleportation coords [arguments]
/2 [arguments]
/a teleporation coords [arguments]
/a tp coords [arguments]
/a tp c [arguments]
/admin tp coords [arguments]
/admin teleportation c [arguments]
...

That's how i did it for me.

By the way, I am very familar with C# and would like to support you if you want me to.


Greets

Andi

Last edited by Joe_Morito; 20/06/2014 at 09:35 PM.
Joe_Morito is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Write on the map hejsan123 Scripting Help 3 23/09/2012 08:35 AM
How to write something in a VAR? Ihsan_Cingisiz Help Archive 4 29/05/2010 07:24 PM
How Do You Write This? sidhu123 Everything and Nothing 2 12/09/2009 04:05 AM
Write something in big and to the top TimBuk.Ekh Help Archive 3 18/04/2009 07:19 PM


All times are GMT. The time now is 10:47 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.