Author Topic: Sissi Is Simple SDL IRC  (Read 4295 times)

Ziz (OP)

  • Posts: 284
    • http://ziz.gp2x.de
Sissi Is Simple SDL IRC
« on: December 27, 2014, 12:59:26 am »
Hello fellows,

I plan to implement support  for IRC chatting in hase someday. The idea is to chat in #hase on the freenode, find some players, start the GCW and continue chatting with them inside the game!

However for this I started to add IRC chat support to my own network tool library sparrowNet. To test the IRC functionalities I made a little program called "Sissi", which stands for "Sissi Is Simple SDL IRC".

It is a very basic IRC client for the GCW using an onscreen keyboard. If you want to chat a lot with your device, you should think about buying a pandora... However it is neat to say "hello", read what other people wrote and of course for meaningful lols and XDs. Rofl.

It supports this features
  • Connecting to any irc server. At the moment only one connection to one server is possible!
  • Joining a channel
  • Chatting in a channel
  • Opening queries
  • Getting queries
  • Leaving channels
  • Seeing the nick list of a channel
  • Scrolling

The program is very basic, I will not improve it very much, because you know... Chatting on a gcw? I thought about implementing another approaches of entering letters, but I decided they are to complicated for non-geek users. Furthermore as said I don't want to invest too much time in such an in fact senseless application. ^^'
If you quit the application the server and user name is saved. I will probably implement at some point, that the channels are saved.

But for now:
http://ziz.gp2x.de/downloads/sissi.opk

Please tell me, whether this opk works! I can't test it myself!

Thanks in advance and enjoy chatting with the GCW. ^^
Greetings, Ziz
I am a leaf on the wind - watch how I soar. Wash

Kouen Hasuki

  • Posts: 155
Re: Sissi Is Simple SDL IRC
« Reply #1 on: December 29, 2014, 10:47:29 pm »
I'll install and try this next chance I get!

hi-ban

  • Posts: 886
Re: Sissi Is Simple SDL IRC
« Reply #2 on: December 31, 2014, 01:23:32 am »
it works ok, but it segfaults if the GCW is not connected to the internet.

[X-space] and [B-remove] work randomly.
« Last Edit: December 31, 2014, 01:39:01 am by hi-ban »

Nebuleon

  • Guest
Re: Sissi Is Simple SDL IRC
« Reply #3 on: December 31, 2014, 01:25:58 am »
Segmentation fault if not connected to the Internet confirmed.

edit: I've also noticed other bugs:

* "X Space" does not always work (it has not worked once for me, but it works for hi-ban);
* "B Remove" and the Backspace key in the virtual keyboard do not always work (it has not worked once for me, but it works for hi-ban);
* Using the Shift version of the keyboard sometimes leaves a ghost image of the cursor you used in the regular version after inputting a letter.
* I receive the message "Invalid password for Nebuleon." immediately after connecting, despite the fact that I have entered none. Is it trying to identify me to NickServ with a password?
« Last Edit: December 31, 2014, 01:43:28 am by Nebuleon »

Ziz (OP)

  • Posts: 284
    • http://ziz.gp2x.de
Re: Sissi Is Simple SDL IRC
« Reply #4 on: December 31, 2014, 11:29:36 am »
Thanks hi-ban and Nebuleon for the bug reports.

Segmentation fault if not connected to the Internet confirmed.
Okay, I will have a look at this.

Quote
edit: I've also noticed other bugs:
* "X Space" does not always work (it has not worked once for me, but it works for hi-ban);
* "B Remove" and the Backspace key in the virtual keyboard do not always work (it has not worked once for me, but it works for hi-ban);
zear noticed these bugs, too. I didn't mention them, because I hoped, it is a zear only problem. :D Furthermore up and down didn't work for him well sometimes while entering letters. May theory is, that the background IRC thread or some other functionality writes to the wrong memory. :\ I will have a look at this. I will also test my application the next weeks on my Pandora and my GP2X, too.

Quote
* Using the Shift version of the keyboard sometimes leaves a ghost image of the cursor you used in the regular version after inputting a letter.
Hm, thought I fixed that already. Will try to reproduce this.

Quote
* I receive the message "Invalid password for Nebuleon." immediately after connecting, despite the fact that I have entered none. Is it trying to identify me to NickServ with a password?
No. I just show every message from the server, I should probably hide some of them, especially if it is not clear, what the client did send. However after connecting to the IRC I send "PASS *". In fact I don't know, what exactly is this doing. It seems to send a password. I just copied it from some IRC-telnet-tutorials. Maybe I can just let it out. Maybe some servers use this command as alternative for /msg nickserver passwd. I will investigate this, too. If my idea is right, I will add a password field to the options menu. ;)

Greetings, Ziz
I am a leaf on the wind - watch how I soar. Wash

Nebuleon

  • Guest
Re: Sissi Is Simple SDL IRC
« Reply #5 on: December 31, 2014, 08:32:47 pm »
The PASS command, when used in the login sequence before NICK and USER, allows to set the server password. Without the correct server password, some private networks will refuse your connection.

Separately from this, you have the services password, which identifies your nickname to NickServ or Quakenet/Dal(?)'s AuthServ. Services packages will allow you to send those with /msg NickServ, /msg AuthServ, /ns, etc.

Freenode confuses the two, and allows you to identify to services in the PASS command: What is the recommended way to set up my IRC nickname?, step 7.

Ziz (OP)

  • Posts: 284
    • http://ziz.gp2x.de
Re: Sissi Is Simple SDL IRC
« Reply #6 on: January 06, 2015, 10:42:26 pm »
Okay, I did test it on the Pandora and the GP2X - both release would be quite useless, but anyway: They work. :\

I didn't test on the gp2x to connect to a network. Maybe the missbehaviour occurs only if the background IRC thread is running?
I know, it crashed if you start without a wifi connection, but I fixed at least this bug (the observer tried to check, whether new channels are added to the server without checking, whether the server object exists at all). :D

Here is the most recent version:
http://ziz.gp2x.de/downloads/sissi.opk

Would be VERY nice, if someone could start it without network, and test the behaviour of the virtual keyboard (including space, backspace and shift button) in the server settings screen. If it works there, I know, that the background thread does bad stuff. If it still doesn't work, I know, that my background thread is fine.

I don't really know, which result I shall like more... ^^'

Greetings,
Ziz

Edit: 200th post! :D Not bad without owning a dingoo or gcw at all. ;)
I am a leaf on the wind - watch how I soar. Wash

zear

  • * Moderator
  • Posts: 2381
Re: Sissi Is Simple SDL IRC
« Reply #7 on: January 06, 2015, 11:13:19 pm »
Would be VERY nice, if someone could start it without network, and test the behaviour of the virtual keyboard (including space, backspace and shift button) in the server settings screen.
I am unable to replicate the issue in this new build, with or without networking. Virtual keyboard just works the way it should :)

Ziz (OP)

  • Posts: 284
    • http://ziz.gp2x.de
Re: Sissi Is Simple SDL IRC
« Reply #8 on: January 07, 2015, 07:28:34 am »
Would be VERY nice, if someone could start it without network, and test the behaviour of the virtual keyboard (including space, backspace and shift button) in the server settings screen.
I am unable to replicate the issue in this new build, with or without networking. Virtual keyboard just works the way it should :)
Unexpected, but possible. I fixed another small "memcpy of a slightly to small buffer", with which I copied a string without the terminating 0. However this error was in the text block handling of sparrow3d, not sissi. So in fact the error should appear in other applications, too... However I use the textblock feature quite often in Sissi. More often than in any other application yet. So maybe just bad luck. :D

Locking forward for more bug reports to be sure, that the error is REALLY fixed. :)
I am a leaf on the wind - watch how I soar. Wash

Ziz (OP)

  • Posts: 284
    • http://ziz.gp2x.de
Re: Sissi Is Simple SDL IRC
« Reply #9 on: January 07, 2015, 01:13:41 pm »
zear, can you test, whether the recent version is working now even if you type something after you submitted something to a channel?

http://ziz.gp2x.de/downloads/sissi.opk
I am a leaf on the wind - watch how I soar. Wash

Ziz (OP)

  • Posts: 284
    • http://ziz.gp2x.de
Re: Sissi Is Simple SDL IRC
« Reply #10 on: January 07, 2015, 07:28:39 pm »
I made a new release with bug fixes and some new features (yeah!):

  • All bugs for the virtual keyboard are fixed (except the shift thing)
  • If you want to exit, you first have to confirm it
  • I fixed some segfaults
  • You can quote a nick in the nicklist
  • You can search faster in the nick list
  • Nicklists with more than 60 nicks (the server sends more than one USER messages than) are supported
  • The nicklist is sorted
  • You can enter a password. The password will be passed as PASS command and with NickServ. For Freenode this is redundant, but not really bothering

Enjoy and tell me about (new) bugs, please!

http://ziz.gp2x.de/downloads/sissi.opk

Greetings, Ziz

PS: You can also tell me, when you just like the application. :)
I am a leaf on the wind - watch how I soar. Wash

 

Post a new topic
Post a new topic