Author Topic: Tremstats 0.9 comes written in C++  (Read 5980 times)

DASPRiD

  • Administrator
  • Posts: 549
  • Turrets: +21/-2
    • http://www.dasprids.de
Tremstats 0.9 comes written in C++
« on: May 15, 2007, 11:40:05 pm »
Hi peeps,

After a long fight with myself, I finally found the way into C++. As some of you maybe know, I planned to rewrite the entire frontend of Tremstats. Well, as this isn't enough, I'm now also rewriting the backend from the slow Python scripting language to C++.

I'm trying to hold the depencies short, so I only use small external classes, which I can deliver directly with the application source files. Sadly, it is not possible, to ship everything with it. One of the greater depencies is mysql++, an object oriented way to work with MySQL. Another depency will a read method of JPEG and TGA files be.

So, I'm still a guy, who always want's to lower the depencies. If you know libraries, which I can use for the called things, and also easily include into the source tree of Tremstats, feel free to post links here. That's so far from my side. After Tremstats 0.9.1 reaches a usable stage, I will update SVN with it. Version 0.9.1 will surely be compatible with the current MySQL structure.


Greez,
DASPRiD
url=https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=mail%40dasprids%2ede&item_name=DASPRiD%27s&no_shipping=0&no_note=1&tax=0&currency_code=EUR&lc=DE&bn=PP%2dDonationsBF&charset=UTF%2d8][/url]

Lava Croft

  • Guest
Tremstats 0.9 comes written in C++
« Reply #1 on: May 15, 2007, 11:49:30 pm »
Can I kill the Python?


Great job Das

garoth

  • Posts: 61
  • Turrets: +4/-5
    • http://garoth.com
!
« Reply #2 on: May 16, 2007, 12:44:45 am »
Good :)
 Garoth (homesite: www.garoth.com )

Lord Baxter

  • Posts: 116
  • Turrets: +1/-3
Tremstats 0.9 comes written in C++
« Reply #3 on: May 16, 2007, 09:49:33 am »
all i know about C++ and python is that they are 2 of the six coding languages everyone should know, but it sounds like a lot of work, so i thank you for doing it.
quot;Unless you count the Chinese. But at this point, NOBODY can count the Chinese."

Known as Hydra ingame,
1227 apparently, can't change that now...

Stof

  • Posts: 1343
  • Turrets: +1/-1
Tremstats 0.9 comes written in C++
« Reply #4 on: May 16, 2007, 10:23:10 am »
If all that matters are tga and jpeg files, it isn't a problem. Coding a TGA loader is a matter of minutes once you have the 3 lines specs available, and for jpeg, you can easily include the jpeg lib code in your project if you want.

For mysql, I don't know much about that but I think it might be a bad idea to do it. Someone with more knowledge about the thing is required.
urphy's rules of combat
8 ) Teamwork is essential; it gives the enemy someone else to shoot at.
18 ) Make it too tough for the enemy to get in and you can't get out.

DASPRiD

  • Administrator
  • Posts: 549
  • Turrets: +21/-2
    • http://www.dasprids.de
Tremstats 0.9 comes written in C++
« Reply #5 on: May 16, 2007, 01:23:59 pm »
Well, I found enough small libraries, which I can easily include into the application source tree. So this depency is fixed. I'm now also going to drop mysql++ and using the default mysql library instead. So this will stay as depency, but shouldn't be a big problem, as many servers with MySQL installed still should have the regarding libraries.
url=https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=mail%40dasprids%2ede&item_name=DASPRiD%27s&no_shipping=0&no_note=1&tax=0&currency_code=EUR&lc=DE&bn=PP%2dDonationsBF&charset=UTF%2d8][/url]

m0wlwurf

  • Guest
Tremstats 0.9 comes written in C++
« Reply #6 on: May 16, 2007, 03:52:11 pm »
Why not using sqllite instead of mysql?

In my opinion mysql is a littlebit overpowered for saving game stats only.

NiTRoX

  • Posts: 1453
  • Turrets: +41/-200
Tremstats 0.9 comes written in C++
« Reply #7 on: May 16, 2007, 04:04:29 pm »
Quote from: "Lord Baxter"
all i know about C++ and python is that they are 2 of the six coding languages everyone should know, but it sounds like a lot of work, so i thank you for doing it.


1.C/C++
2. Java
3. Python
4. HTML
5. C#
6.PASCAL (<- to make it easier for learning other languages) (DELPHI is almost the same as PASCAL but is used for non-dos apps)

IMO.

DASPRiD

  • Administrator
  • Posts: 549
  • Turrets: +21/-2
    • http://www.dasprids.de
Tremstats 0.9 comes written in C++
« Reply #8 on: May 16, 2007, 04:08:15 pm »
Quote from: "m0wlwurf"
Why not using sqllite instead of mysql?

In my opinion mysql is a littlebit overpowered for saving game stats only.


Because SQLite is underpowered. All the calculations, which have to be done, at parse time, and at runtime, are heavy, so we need MySQL. Also the mass of data, which comes with the game stats, is much more, than SQLite is supposed to handle.

NiTRoX:
HTML is no coding language.
url=https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=mail%40dasprids%2ede&item_name=DASPRiD%27s&no_shipping=0&no_note=1&tax=0&currency_code=EUR&lc=DE&bn=PP%2dDonationsBF&charset=UTF%2d8][/url]

NiTRoX

  • Posts: 1453
  • Turrets: +41/-200
Tremstats 0.9 comes written in C++
« Reply #9 on: May 16, 2007, 06:52:48 pm »
Aight sorry i tought it was considered as a coding lanugage. I'l larrange my list again

1.C/C++
2. Java
3. Python
4. Visual / Basic
5. C#
6.PASCAL / Delphi (<- to make it easier for learning other languages) (DELPHI is almost the same as PASCAL but is used for non-dos apps)

PIE

  • Posts: 1471
  • Turrets: +96/-52
    • http://www.mercenariesguild.net
Tremstats 0.9 comes written in C++
« Reply #10 on: May 16, 2007, 09:45:52 pm »
..if you're going to have java and python on there you need PHP to be on there as well. PHP makes the net go round. C# is to0 low and Java is too high... and you forgot Lisp.. wtf

f0rqu3

  • Guest
Tremstats 0.9 comes written in C++
« Reply #11 on: May 16, 2007, 09:50:18 pm »
damn you ruined dasprids thread
( ... )

Paradox

  • Posts: 2612
  • Turrets: +253/-250
    • Paradox Designs
Tremstats 0.9 comes written in C++
« Reply #12 on: May 16, 2007, 11:50:16 pm »
THANK YOU, this will help us windoze servers a lot.

∧OMG ENTROPY∧

kevlarman

  • Posts: 2737
  • Turrets: +291/-295
Tremstats 0.9 comes written in C++
« Reply #13 on: May 17, 2007, 12:08:02 am »
Quote from: "Paradox"
THANK YOU, this will help us windoze servers a lot.
if you can install mysql on a windoze server why can't you install python?
Quote from: Asvarox link=topic=8622.msg169333#msg169333
Ok let's plan it out. Asva, you are nub, go sit on rets, I will build, you two go feed like hell, you go pwn their asses, and everyone else camp in the hallway, roger?
the dretch bites.
-----
|..d| #
|.@.-##
-----

TinMan

  • Posts: 1019
  • Turrets: +49/-70
    • http://neonpulse.net
Tremstats 0.9 comes written in C++
« Reply #14 on: May 17, 2007, 12:23:31 am »
You can.
Code: [Select]
Linux: ~/.tremulous/base/
Mac: ~/Library/Application\ Support/Tremulous/base/
Windows: C:\Documents and Settings\username\Local Settings\Application Data\Tremulous\base\
NeonPulse
http://neonpulse.net/media/games/tremulous/base/autoexec.cfg

Paradox

  • Posts: 2612
  • Turrets: +253/-250
    • Paradox Designs
Tremstats 0.9 comes written in C++
« Reply #15 on: May 17, 2007, 04:55:52 am »
I have, it is just quite a pain to get it to behave.
I just skipped everything and installed Cygwin.

∧OMG ENTROPY∧