Author Topic: Lin - Linux Soldat Admin  (Read 11586 times)

0 Members and 1 Guest are viewing this topic.

Offline mar77a

  • Global Moderator
  • Veteran
  • *****
  • Posts: 1295
  • mad
    • random stuffs
Lin - Linux Soldat Admin
« on: November 10, 2007, 07:34:49 pm »
Hmm, yeah so, here's version 0.2.



Download the source
Compile
Code: [Select]
g++ lin.cpp -o lin -lncurses -lform
If you want the binary only, it can be downloaded here.

Special thanks to Chrisgbk and hollow87. Using ramirez's C++ REFRESH parser (soldatinfo.h).
« Last Edit: October 11, 2008, 09:25:52 pm by jrgp »

Offline EnEsCe

  • Retired Soldat Developer
  • Flamebow Warrior
  • ******
  • Posts: 3101
  • http://enesce.com/
    • [eC] Official Website
Re: Lin - Linux Soldat Admin
« Reply #1 on: November 10, 2007, 09:17:57 pm »
im in ur screenies, stealing ur IPz

Offline Jaska

  • Major(1)
  • Posts: 21
  • Little girls with guns, awww....
    • FinBits
Re: Lin - Linux Soldat Admin
« Reply #2 on: November 23, 2007, 04:41:07 am »
Is there any way to run scheduled commands ex. /say ?

Offline chrisgbk

  • Inactive Staff
  • Veteran
  • *****
  • Posts: 1739
Re: Lin - Linux Soldat Admin
« Reply #3 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.

Offline Jaska

  • Major(1)
  • Posts: 21
  • Little girls with guns, awww....
    • FinBits
Re: Lin - Linux Soldat Admin
« Reply #4 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...

Offline chrisgbk

  • Inactive Staff
  • Veteran
  • *****
  • Posts: 1739
Re: Lin - Linux Soldat Admin
« Reply #5 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;

Offline mar77a

  • Global Moderator
  • Veteran
  • *****
  • Posts: 1295
  • mad
    • random stuffs
Re: Lin - Linux Soldat Admin
« Reply #6 on: December 12, 2007, 03:11:15 pm »
I updated it to fix some minor bug.

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


Offline Clawbug

  • Veteran
  • *****
  • Posts: 1393
  • 1184!
Re: Lin - Linux Soldat Admin
« Reply #7 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.
Fight! Win! Prevail!

Offline chrisgbk

  • Inactive Staff
  • Veteran
  • *****
  • Posts: 1739
Re: Lin - Linux Soldat Admin
« Reply #8 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.

Offline n2j3

  • Soldier
  • **
  • Posts: 152
    • soldat.gr
Re: Lin - Linux Soldat Admin
« Reply #9 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...
« Last Edit: December 22, 2007, 08:40:07 am by n2j3 »

Offline mar77a

  • Global Moderator
  • Veteran
  • *****
  • Posts: 1295
  • mad
    • random stuffs
Re: Lin - Linux Soldat Admin
« Reply #10 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 :)



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.
« Last Edit: December 24, 2007, 01:39:02 pm by mar77a »

Offline n2j3

  • Soldier
  • **
  • Posts: 152
    • soldat.gr
Re: Lin - Linux Soldat Admin
« Reply #11 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...
« Last Edit: December 23, 2007, 11:21:48 am by n2j3 »

Offline Denacke

  • Soldat Beta Team
  • Soldier
  • ******
  • Posts: 209
  • Cake!
Re: Lin - Linux Soldat Admin
« Reply #12 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 ;)

Offline n2j3

  • Soldier
  • **
  • Posts: 152
    • soldat.gr
Re: Lin - Linux Soldat Admin
« Reply #13 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
« Last Edit: March 11, 2011, 11:11:30 am by n2j3 »

Offline hyrr

  • Major(1)
  • Posts: 30
Re: Lin - Linux Soldat Admin
« Reply #14 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?

Offline mar77a

  • Global Moderator
  • Veteran
  • *****
  • Posts: 1295
  • mad
    • random stuffs
Re: Lin - Linux Soldat Admin
« Reply #15 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..

Offline hyrr

  • Major(1)
  • Posts: 30
Re: Lin - Linux Soldat Admin
« Reply #16 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

Offline Shoozza

  • Retired Soldat Developer
  • Veteran
  • ******
  • Posts: 1632
  • Soldat's Babysitter
    • Website
Re: Lin - Linux Soldat Admin
« Reply #17 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
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.
« Last Edit: February 27, 2012, 09:11:59 am by Shoozza »
Rules
Tools: ARSSE - SARS - SRB - chatMod