Official Soldat Forums

Soldat Fans => Fan Apps => Topic started by: mar77a on November 10, 2007, 07:34:49 pm

Title: Lin - Linux Soldat Admin
Post by: mar77a on November 10, 2007, 07:34:49 pm
Hmm, yeah so, here's version 0.2.

(http://img339.imageshack.us/img339/5791/linkz6.png)

Download the source (http://lion.u13.net/~mar77a/cpp/lin/lin.zip)
Compile
Code: [Select]
g++ lin.cpp -o lin -lncurses -lform
If you want the binary only, it can be downloaded here (http://lion.u13.net/~mar77a/cpp/lin/lin).

Special thanks to Chrisgbk and hollow87. Using ramirez's C++ REFRESH parser (soldatinfo.h).
Title: Re: Lin - Linux Soldat Admin
Post by: EnEsCe on November 10, 2007, 09:17:57 pm
im in ur screenies, stealing ur IPz
Title: Re: Lin - Linux Soldat Admin
Post by: Jaska on November 23, 2007, 04:41:07 am
Is there any way to run scheduled commands ex. /say ?
Title: Re: Lin - Linux Soldat Admin
Post by: chrisgbk on November 23, 2007, 11:42:37 am
Is there any way to run scheduled commands ex. /say ?

Yoiu are better off using server side scripting for that.
Title: Re: Lin - Linux Soldat Admin
Post by: Jaska on November 23, 2007, 04:26:15 pm
Is there any way to run scheduled commands ex. /say ?

Yoiu are better off using server side scripting for that.
Can you recommend any? Couldn't find any script that does scheduled /say command. Arsse is perfect for the adver job, but for some reason my pc starts to freeze up time to time when using arsse and im not running my  pc 24/7 like my linux server...
Title: Re: Lin - Linux Soldat Admin
Post by: chrisgbk on November 23, 2007, 05:02:36 pm
Code: [Select]
procedure AppOnIdle(Ticks: integer);
begin
  if Ticks mod (3600 * 5) = 0 then begin //Every 5 minutes
    WriteConsole(0, 'Advertisement', RGB(255, 255, 255));
  end;
end;
Title: Re: Lin - Linux Soldat Admin
Post by: mar77a on December 12, 2007, 03:11:15 pm
I updated it to fix some minor bug.

Here's another screenshot btw (thanks to flippeh):

(http://www.abload.de/img/linjcu.png)
Title: Re: Lin - Linux Soldat Admin
Post by: Clawbug on December 14, 2007, 04:22:18 am
What about coloring different info of the player when showing info from REFRESH?

Playername kills deaths ping ip

Like that. Would be great.
Title: Re: Lin - Linux Soldat Admin
Post by: chrisgbk on December 14, 2007, 04:25:12 am
What about coloring different info of the player when showing info from REFRESH?

Playername kills deaths ping ip

Like that. Would be great.

Not really possible with the way it's programmed.
Title: Re: Lin - Linux Soldat Admin
Post by: n2j3 on December 22, 2007, 06:55:13 am
Few suggestions:

a.Would be nice to repeat the last command by pressing cursor-key up etc, a la typical bash
b. command autocomplete 
c. connect directly from cli : .e.g user$ ./lin 2wai.soldat.gr 27774 password
Other than that, great work mar77a  :)

And the quintessential Spelling Correction: -> Error writting data to socket...
Title: Re: Lin - Linux Soldat Admin
Post by: mar77a on December 22, 2007, 03:49:27 pm
Quote
a.Would be nice to repeat the last command by pressing cursor-key up etc, a la typical bash
b. command autocomplete
c. connect directly from cli : .e.g user$ ./lin 2wai.soldat.gr 27774 password
Added :)

(http://666kb.com/i/aundf1gcx754cit4k.png)

Here's the new source for v0.3: http://alb.u13.net/~mar77a/cpp/lin/lin3.zip

You can run build.sh or use "g++ lin.cpp -o lin -lncurses -lform" as usual.
Title: Re: Lin - Linux Soldat Admin
Post by: n2j3 on December 23, 2007, 11:10:45 am
:o such a fast response! you're the bomb mar77a..

works like a charm :)

edit

added binary for the really lazy ones...
Title: Re: Lin - Linux Soldat Admin
Post by: Denacke on December 24, 2007, 04:13:05 pm
If compiling gives you a load of errors, this might help you:

By default the ncurses development libraries aren't installed in ubuntu, to install them type this in your terminal:
Code: [Select]
sudo apt-get install ncurses-devIt will automatically select some up to date ncurses.


Looks like a nice piece of programming though, Good job mar77a ;)
Title: Re: Lin - Linux Soldat Admin
Post by: n2j3 on January 21, 2008, 01:56:08 pm
mar77a, for the sake of presentation, could you add a couple of tabs between the player details?

like so, https://pastee.org/x4k9v
Title: Re: Lin - Linux Soldat Admin
Post by: hyrr on August 21, 2008, 12:15:50 pm
Great app!

If you're still developing this, could you please add feature to log the server?
Title: Re: Lin - Linux Soldat Admin
Post by: mar77a on August 21, 2008, 05:22:25 pm
Any other ideas? I guess i'll do a minor update with requested features and bug fixes..
Title: Re: Lin - Linux Soldat Admin
Post by: hyrr on August 23, 2008, 08:24:15 am
I've found a bug, but I have to get the output for you...

Let me use Lin for some time, so I can gather bugs and new feature suggestions! :)

Date Posted: August 22, 2008, 06:41:46 am
Code: [Select]
terminate called after throwing an instance of 'std::bad_alloc'
                                                                 what():  St9bad_alloc
Title: Re: Lin - Linux Soldat Admin
Post by: Shoozza on May 18, 2009, 03:18:37 am
If someone still wants to download the src for lin v0.3:
http://lion.u13.net/~mar77a/cpp/lin/lin3.zip (http://lion.u13.net/~mar77a/cpp/lin/lin3.zip)
is the new download location.

Btw I made a fix for Mac OS X and added some stuff.

Changelog lin v0.4:
-fixed deletekey does not work (for mac os x)
-fixed no visible input after deletekey has been pressed (for mac os x)
-added /clientlist command (your nick, client and the versionnumber will be sent)
-added /nick command to change nickname for clientlist reply
-modified commandcompletion and helpfiles (added clientlist and nick command)
-modified versionnumber is now a macro

Changelog lin v0.5:
-fixed ifdefs compile issues
-fixed compile errors because of missing include headers in usocket.h

Sourcecode attached.