Server Help

Misc User Apps - Just Another ChatNet Client (JACC) (1.0 release)

CypherJF - Mon Aug 16, 2004 10:36 pm
Post subject: Just Another ChatNet Client (JACC) (1.0 release)
Project has been moved over here, click here.


Just Another ChatNet Client
build: 1.0
download copy at the bottom of this topic.

if you have previously run this program it is highly recommended you delete your previous config.ini that resides in the program folder; as prior versions saved plain-text passwords.

if you have never run this program take time to read the little info section of this, post. the download link is located at the bottom. please note, users may find issues from time to time, so please make sure you come back every so often to make sure you have the most up to date version.

Latest Changes:
=======================
Last Updated: 10.16.2004 at 12:00am EST
- * Fixed: ChatNet Client ID per protocol 1.5
- * Fixed: ChatNet NOOP command per protocol 1.6
- * Fixed: Hidden password in log window.
- * Fixed: logging now adds the C2S :: responce.
- * Fixed: improper name switching with :: at the end of message.
- * Possible fix was introducted, for message in regards to invalid user?

Last Updated: 08.24.2004 at 3:15am EST
- * Added: Implemented ChatNet 1.5 commands.
- * Changed: Chat window should only scroll if the cursor is not set in it; in other words, the cursor shouldn't be blinking in the chat display area.
- * Added: Ping count from server.
- * Changed: zone listing window.
- * Changed: Password encryption.

Little Info
=======================
* This program is currently still in major development, check back often for updates!
* This program requires the following files: MS Visual Basic Runtime 6 files, MS Winsock control, MS Richtextbox control.
* This program will ping any SS server, however, you may only connect to those running the ASSS software.
* Place bong24.wa2 in the same folder as jacc.exe, to hear the sheep sound when you do ?sheep.
* This program will blink (when minimized) and do system beep when you receive a private message.
* ?reconnect
* Following: ?namelen,?log,?away,?quit,?ignore <name>,?hop #,?go are client-implemented commands and are all able to be used.
* ?hop # will let you switch servers without having to go back to the main screen.

Required Files
=======================
* Microsoft Visual Basic 6 Runtime Files
http://www.subspacedownloads.com/index.php?act=file&fid=1060
* Microsoft Richtextbox Control
http://www.subspacedownloads.com/index.php?act=file&fid=1061
* Microsoft Winsock Control
http://www.xerocreative.com/runtimes.html
^-- I have not confirmed whether or not this file is a valid winsock control.


** As with always, this program is a freeware program, which means I am not responcible for what may happen to your machine. Not like anything would, but there's the disclaimer. icon_smile.gif

Screenshots
=======================




Notes:
http://sscx.net/asss/simple-chat.txt
myke - Mon Aug 16, 2004 11:21 pm
Post subject:
yes cool beans i'm wearing a du rag
CypherJF - Mon Aug 16, 2004 11:28 pm
Post subject:
Okay, myke pointed out to me that some people aren't switching freq's... :/ need to locate and fix.

Edit: Fixed.

I should also point out, if you use ?hop, you will login w/ the same username and password as the current zone you're in.
Mr Ekted - Tue Aug 17, 2004 12:05 am
Post subject:
Someone please make a chat client under 50K! No VB, no activex, no java!!!!
CypherJF - Tue Aug 17, 2004 12:08 am
Post subject:
Why don't you then?

I should point out, the listbox-like control, is probably what comprised of much of the size; there are a few functions, etc. etc. that aren't in use, which are planned to be cleaned out; but I'm working on that... I don't see the size going down to 50k, just the icon alone added a slight portion of size..


Ending this conversation now, before it goes off topic.

I've been rewriting some of the code, etc. etc. because I logged into SSC too many times w/ an invalid password; go figure, right? So, I won't be able to test these edits completely until mornin; but.. they include a rewrite of the C2S, and RTF handlers. I've also added a ?clear command to, yes yes, clear the old text, haha.
Bak - Tue Aug 17, 2004 2:17 am
Post subject:
the original chatnet's jar is approx 50k... and 60k of that uncompressed is the source, which could easily be removed to lower the jar size significantly.

good work cypher
CypherJF - Tue Aug 17, 2004 2:23 am
Post subject:
thanks, I'm not really aiming for the size, being most HD's can handle it regardless. The big reason, I made this, 1.) I was bored, 2.) I also got tired of launching Java, and 3.) ChatNet is good for what it is, but I like being able to switch between servers easily, and just some other minor things that bugged me. icon_smile.gif
Bak - Tue Aug 17, 2004 2:27 am
Post subject:
yeah i hate it when i have to leave hyperspace to enter the other many asss zones... like asss test server... and asss test server (powerball)...

anyways enough off topic for me
Grelminar - Tue Aug 17, 2004 3:52 am
Post subject:
Ek: I already made a chat client under 50k, in fact, it's just under 30k, is a single executable file, and includes source code (well, it is just source code). IMHO, it's also the best available chat client for asss, since it includes features like logging, tabbed windows for separate chats, and customizable key bindings and colors, that no other client has. http://sscx.net/asss/ccc
CypherJF - Tue Aug 17, 2004 4:19 am
Post subject:
Updated, with a newer version. Keep the suggestion's and any bug reports comin. icon_smile.gif

I never claimed this to be the best by any means, and I would hope you being the programmer of the server, would have a lot better client; lol... but this works for me, and that's that. Just making ithis public release so people can use it, if they wish.

So grel, when's the new official compile of ASSS for window's comin'? icon_wink.gif
... pauses... o wait, no need to answer.. lol
Grelminar - Tue Aug 17, 2004 1:09 pm
Post subject:
oh, sorry, that post wasn't really clear; it was only meant in response to:

Mr Ekted wrote:
Someone please make a chat client under 50K! No VB, no activex, no java!!!!


i didn't mean to imply that i thought yours sucked, or anything like that.

oh, and as i've now started a real job, i have to be more careful prioritizing subspace stuff. at the top of my list now is implementing all the new lvl/region stuff that i wrote about. after that, maybe i can look into windows again.
CypherJF - Tue Aug 17, 2004 2:25 pm
Post subject:
$ biggrin.gif
Mr Ekted - Tue Aug 17, 2004 2:28 pm
Post subject:
CypherJF wrote:
I should point out, the listbox-like control, is probably what comprised of much of the size;


Why did you use a LISTBOX-LIKE control with so much overhead, when you could a LISTBOX control for free? icon_surprised.gif
CypherJF - Tue Aug 17, 2004 2:42 pm
Post subject:
Yeah a ghey one at that; VB's Listbox control does not support graphical icons (as I have now), and item color's.
Cyan~Fire - Tue Aug 17, 2004 4:47 pm
Post subject:
I thought VB used the same controls as the rest of us? Guess not.
CypherJF - Wed Aug 18, 2004 4:50 am
Post subject:
Okay, enough updates for tonite, here is the last batch:

* Fixed: Player removal issue w/ player list.
* Added: support for CMD messages (they will appear italics)
* Change: Formatting on screen of Private message(s).
* Added: Colorized to be sent text


Please test it out; and let me know what you think... icon_smile.gif
Anonymous - Wed Aug 18, 2004 5:03 pm
Post subject:
I think you should mask out freq's higher than 99 to make it fair.

Although ccc has the most features, there is still a sort of issue with the modchat and messages generated by the server. Are a variable number of fields in a message type allowed? MSG:MOD:name:msg and MSG:MOD:msg for example.

As it turns out I just started trying to clone ccc in C. Here's a pic of me hax0ring the asss term from the clone term. I think I'll have to learn this C++ stuff to implement the tabs efficiently though.

Of course because ccc and this clone use ncurses it will not run on windows (unless you have cygwin).
CypherJF - Wed Aug 18, 2004 10:43 pm
Post subject:
* new release at midnight, see change-log for more details.
Grelminar - Thu Aug 19, 2004 3:01 am
Post subject:
Oh, yeah, I forgot there's that lingering issue about mod chat. I think the easiest thing to do is to say the format of a mod chat message is "MSG:MOD:name:msg", and get rid of chat->SendModMessage. Or not get rid of it, but have it send those things in arena messages instead of mod messages. Or have it use a fake name field for them.
Grelminar - Fri Aug 20, 2004 12:34 am
Post subject:
-Smong- wrote:
As it turns out I just started trying to clone ccc in C.


Btw, can I ask why in the world you would want to do such a thing? It's there and it works. Use it, and if you want, extend it and send me a patch. But don't waste effort cloning it.
CypherJF - Sun Aug 22, 2004 4:25 am
Post subject:
Here are a couple screen shots of what you can expect in the next release(s)...

- Added: Implemented ChatNet 1.5 commands.
- Added: Ping count from server.
- Changed: Chat window should only scroll if the cursor is at the last position of the textbox; and shouldn't scroll especially if you have highlighted text.

I'm not happy with the way it's being handled, with the scrolling issue; I'll be keeping that a priority over the next few revisions...

Also, I should note, the client default is now set for protocol 1.5 which will not be released until the new builds of ASSS come out for 1.3.0. However, there should be no need to use the 1.4 protocol setting; it's just an option that differentiates the login sequence (omit's client ID); and ignores the private macro command.



Anonymous - Mon Aug 23, 2004 9:03 am
Post subject:
If you feel you really must have a ping in the zone selection window, then keep the ping blank and playercount 0 for unreachable servers.

Also I started cloning ccc because I was thinking some people might not have Python installed, like if they were trying out linux for the first time or something.
Grelminar - Mon Aug 23, 2004 12:52 pm
Post subject:
I was very careful to make the client version thing backwards compatible. There's no need to support more than one version at once, it just makes everything more confusing, and doesn't actually achieve any more compatibility. asss ignores unknown message types, so there's no problem sending an older version PUBM messages. Similarly, your client should pretty much ignore any messages it doesn't know about, optionally printing some debug information.
CypherJF - Mon Aug 23, 2004 2:40 pm
Post subject:
True, but like I said right now it's just a switch for login auth cmd; optionally leaving out the new 1.5 client ID. I'm more or less going to simply just set them either to visible = false; or completely remove em.
CypherJF - Mon Aug 23, 2004 2:44 pm
Post subject:
-Smong- wrote:
If you feel you really must have a ping in the zone selection window, then keep the ping blank and playercount 0 for unreachable servers.


I've changed this to have:
--- Zone Name 0

Type of format if a zone is offline.
Anonymous - Mon Aug 23, 2004 3:35 pm
Post subject:
CypherJF wrote:
optionally leaving out the new 1.5 client ID
The way in which the version is parsed by the server and how it splits the : means it is ok to put whatever junk you want after a number. fx: CHANGEFREQ:8025blahblah or SEND:FREQ:1-moo:some message.
CypherJF - Mon Aug 23, 2004 3:37 pm
Post subject:
Right, the server just ignores it..
CypherJF - Tue Aug 24, 2004 3:29 am
Post subject:
Version 1.0 release
* Please let me know of any suggestions/comments/bugs/questions that you might have/find.
CypherJF - Fri Oct 15, 2004 10:58 pm
Post subject:
Here are some -tiny- changes I've done...

10.16.2004:
- Fixed: ChatNet Client ID per protocol 1.5
- Fixed: ChatNet NOOP command per protocol 1.6
- Possible fix for message in regards to invalid user?
- Fixed: logging now adds the C2S :: responce.
- Fixed: improper name switching with :: at the end of message.
RC
- Fixed: PM :: cycling issue.
- Added: URL parsing
- Added: Font style changing capability.
- Changed: Allowed Maximum Window

Here are reported suggestions:
'TODO: finish zone manager
'TODO: add name/teams sorts
'TODO: Save ?ignore
'SUGG: Color kill messages accordingly?
'SUGG: Away manager
'SUGG: user profile
'SUGG: macro's
CypherJF - Sat Oct 16, 2004 7:30 pm
Post subject: v1.1 - coming soon?
Here are a couple screen shots...




Anonymous - Sun Oct 31, 2004 3:08 am
Post subject:
What causes Runtime error "7", out of memory?
CypherJF - Sun Oct 31, 2004 9:55 am
Post subject:
What are your spec's?

I've heard of one other person having this issue.
Anonymous - Mon Nov 01, 2004 2:47 am
Post subject:
off the top of my head...

Athlon AMD 2400+
Gefore FX5/4--- (something in the thousands, somethng like 4800, not sure)
512 ram..
not sure about the mobo
CypherJF - Mon Nov 01, 2004 8:48 am
Post subject:
Those are better spec's then mine tongue.gif haha.. hm; I'm not to sure, let me google around a bit.
Cyan~Fire - Mon Nov 01, 2004 5:51 pm
Post subject:
Your program is most likely attempting to allocate some erroneously large array or something.

Can you reproduce the error, chocko? (Has it happened more than once?)
Anonymous - Mon Nov 01, 2004 6:12 pm
Post subject:
yes, it's happened like 50 times, just the same over and over again
D1st0rt - Mon Nov 01, 2004 6:36 pm
Post subject:
What were you doing to cause the error?
CypherJF - Mon Nov 01, 2004 7:08 pm
Post subject:
I should just post the version I'm using; since I never had issues with it... :/ there again I'm not on a modem; and I guess it's been known to have some slight issues.


So here is a copy of the version I run.

Delete your config.ini... before using this one...

Noted Issues: the :: thing is still buggie.
Anonymous - Mon Nov 01, 2004 9:48 pm
Post subject:
d1: just opening it causes the error

cypher: still out of memory :\ where is this config.ini you speak of? i'm gonna try redownloading and installing the required files...
CypherJF - Mon Nov 01, 2004 10:03 pm
Post subject:
The config.ini is created when you save any settings; it'd be in the same directory -as- the jacc client. I believe the solution to this, is make sure you have the most up to date ocx files:
See these:
http://subspacedownloads.com/index.php?act=file&fid=1060

http://subspacedownloads.com/index.php?act=file&fid=1061

And maybe try to get MSWINSCK.OCX
Anonymous - Tue Nov 02, 2004 1:38 am
Post subject:
i've got all the files -- but i can't seem to override msvbvm60.dll (and plus, i have a newer version than the one being offered), could that be the problem?
Cyan~Fire - Tue Nov 02, 2004 6:29 am
Post subject:
Shouldn't be.

If it's crashing on opening, you must have some sort of bad setting. Find that config.ini and post it here for Cypher.

(Why do we have to do your debugging for you, Cyph? icon_razz.gif)
CypherJF - Tue Nov 02, 2004 8:52 am
Post subject:
icon_wink.gif I guess I wouldn't overwrite w/ older versions of the MSVB runtime. What operating system you using?
Anonymous - Wed Nov 03, 2004 12:39 am
Post subject:
XP
CypherJF - Wed Nov 03, 2004 12:59 am
Post subject:
:shrug: sorry I really don't know. All I can think, make sure you have the newest dependencies. Richtextbox, Winsock. They said you had a newer VB6 runtime?
Cyan~Fire - Wed Nov 03, 2004 5:53 am
Post subject:
Follow my advice. Find your config.ini and post it.
CypherJF - Wed Nov 03, 2004 11:20 am
Post subject:
Well there might not be a config.ini right away; also, make sure there is a zone.dat
Cyan~Fire - Wed Nov 03, 2004 5:36 pm
Post subject:
Well if there isn't a config.ini, then that's probably the problem. Have you tried running it without, Cyph?
CypherJF - Wed Nov 03, 2004 9:30 pm
Post subject:
Just did, it's okay. If you don't have one in there, then depending which version you have, assuming you're using the one that I posted on its own a few posts up; it'll ask for an initial username, if you don't have a config.ini.... Does it do that?
Anonymous - Thu Nov 04, 2004 1:23 am
Post subject:
As soon as i try to open it, ie double click on the app, it comes up with the runtime error. It doesn't get past that. No config.ini or anything. I tried a couple of different versions and YES zone.dat is there
CypherJF - Thu Nov 04, 2004 8:50 am
Post subject:
Interesting.. Thanks for bearing w/ me on this... I still think it's a user control creating an issue. :/

edit:
Do me a favor try running this special version I made for you; it'll run a message box for each step of loading it does (10 steps). Let me know of the results...

edit:
attachment removed. thanks for reporting back.
D1st0rt - Thu Nov 04, 2004 5:34 pm
Post subject:
Speaking of memory overloads, whats the fastest way to chew up ram of say, a school computer? Do I just put a big malloc inside a while loop?
Mr Ekted - Thu Nov 04, 2004 5:59 pm
Post subject:
calloc() is better. That will guarantee all allocated virtual RAM gets committed.
Grelminar - Thu Nov 04, 2004 11:58 pm
Post subject:
This is really pedantic, but in theory, calloc could be implemented without actually writing to memory, if the C library knows that the mechanism it's using to get new pages from the OS are pre-zeroed. This is true for anonymously mmaped pages on unix systems. To really be sure you're forcing physical RAM and swap to be allocated, do the memset yourself.
Anonymous - Fri Nov 05, 2004 12:22 am
Post subject:
finishes step 2 and then goes out of memory
CypherJF - Fri Nov 05, 2004 1:00 am
Post subject:
It's exiting on/near
call frmmain.show()

hmmm, it's got to be something on that form that's causing it. I really don't know. :-/ sorry.
Mr Ekted - Fri Nov 05, 2004 1:16 am
Post subject:
Grelminar wrote:
This is really pedantic, but in theory, calloc could be implemented without actually writing to memory, if the C library knows that the mechanism it's using to get new pages from the OS are pre-zeroed. This is true for anonymously mmaped pages on unix systems. To really be sure you're forcing physical RAM and swap to be allocated, do the memset yourself.


Or to be even more efficient, malloc() the RAM and write just a single word every 4K (or whatever VM granularity is). icon_smile.gif
CypherJF - Fri Nov 05, 2004 5:02 pm
Post subject:
Out of Memory Issue:
Chocko and I finally got to sit down and figured it out. D With Windows XP you can follow steps such as this:
1.) Goto c:/windows/system32/, and backup your mswinsck.ocx
2.) Locate and install mswinsck.ocx into the /system32/ directory.
3.) Goto run type in: regsvr32 "c:/windows/system32/mswinsck.ocx"

The problem should be fixed. Note: I gave Chocko my copy of the Winsock control, so it is possible download on the link I have provided may not be a proper version.

Version 1.2 has been released; click here to go there.
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group