PlaneShift

Gameplay => General Discussion => Topic started by: Kramy on November 18, 2003, 10:16:55 pm

Title: PS Feature Enabler
Post by: Kramy on November 18, 2003, 10:16:55 pm
Hi, I\'m a newbie.

A few months ago I read how to make the FPS counter visible in PS. Recently though I\'ve gotten very annoyed re-adding it every time I run the updater, \"just incase\".

I decided to make a program that does it for me, after not finding a similar program on any of the forum searches I did.

Here\'s the download link: (436kb)

http://www.geocities.com/rs_kramy/psfeaten.html

Note: It\'s a simple program that adds lines of text to psclient.cfg

If anyone has any other features they want added, feel free to tell me and I\'ll add checkboxes to add/remove that feature aswell.(provided you have the plugin code)
Please report any bugs you find - It\'s designed for windows only, but hasn\'t been tested on ME, 2000, etc.

Oh, and I hope there isn\'t already a feature enabler that I missed.
Title:
Post by: Kiva on November 18, 2003, 10:28:18 pm
I like the idea, but a ~450kb to change one line, in a very small .cfg file? This could most likely be easily done with a tiny <1kb bat file or something. I\'ve read about it, I just can\'t remember what exactly to put into it. :D


Btw, you said you were a newbie? Then -
(http://www.neonamek.com/sigs/kaorn2.gif)
Title:
Post by: lynx_lupo on November 18, 2003, 10:49:20 pm
Eh, Grono. It\'s the result that counts, I don\'t think dial-uper\'s will have lag and low end machines will have trouble doing it. :P

Great work, Kranny.
Title:
Post by: Davis on November 18, 2003, 11:20:12 pm
He probably wrote it in a compiled language and the compiler added a whole bunch of crap.
Title:
Post by: Xordan on November 18, 2003, 11:36:41 pm
woah.... 932kb u mean. Still, only took 3 sec to download. Nice work. :D
Title:
Post by: Kramy on November 19, 2003, 12:36:01 am
Gronomist: Thanks for the welcome! :)

Davis: Correct

Technically the program only has roughly 90 lines of coding, plus comments, but if you want a compiler that doesn\'t add lots of crap..well, you have to pay for it. :D

Good news is that due to all the \"crap\" in it, I can add anything I want to it and it should stay the same size...

Oh, and it checks the files to make sure the plugins aren\'t already added aswell, to prevent it from loading the same plugin 2 or 3 times(if that\'s even possible). In a way unchecking boxes is a disabler of features.

Xordan: Thanks. :) (932kb unzipped - must find way to get rid of \"crap\" compiler adds)
Title:
Post by: Xandria on November 19, 2003, 02:46:23 am
Quote
Originally posted by Davis
He probably wrote it in a compiled language and the compiler added a whole bunch of crap.


Sounds more like an \'interpreted\' language to me.  If you write a VB program that displays \"Hello World!\" your .exe is like >600KB :P.  About the largest C++ MFC app I\'ve written is about 24KB.

Quote
Originally posted by Kramy
Technically the program only has roughly 90 lines of coding, plus comments, but if you want a compiler that doesn\'t add lots of crap..well, you have to pay for it.


Well let\'s see, gcc is free...and it\'s what most Linux users use to compile every single thing on their system.

BTW, exactly which compiler do you use?
Title:
Post by: Kramy on November 19, 2003, 06:12:03 am
MMF. Technically it\'s not usually used for things like that. It\'s ideal for 2D games, single player and multiplayer, servers, more complex apps, etc.  Using it for adding lines of text is such a misuse of it\'s power, when I could just as easily make a 2D tile-based game with it, or a screensaver, in under 30 minutes. It is nice though because it gets rid of all that extra compiling hassle. Just check some boxes to enable features, and click a button. *poof* The other nice part about it is it\'s very easy to learn(but hard to master) mainly because it\'s all object based. Download objects, insert them into your app, and all the coding needed is presented on a platter...just right click objects to get everything you need. Ofcourse, giving all that ease of creation to newbies still won\'t help them make good to professional quality stuff if they don\'t take the time to master it.

Clickteam, which created MMF, has also created a scripting language(Jamascript) used for 2D/3D games and apps.  Unfortunately, I forgot I installed the demo, so now it\'s expired and won\'t let me in(and I don\'t want to pay $99 american for it incase I don\'t like it).

Their website is at:  http://www.clickteam.com

It\'s mainly geared toward the \"no nothing newbies\", allowing them to make really cool stuff without a scripting language, but lots of professionals like it too for it\'s ease of use and extensions ability. If you know C++ you can make your own objects to do whatever you want.(which is a bonus ontop of the huge database of objects that already exists)

P.S. I can\'t afford to buy a Linux.
Title:
Post by: Wedge on November 19, 2003, 08:49:56 am
I hate to tell you, but that\'s kind of a waste of time.  

1: I don\'t think MB is going to be updated anymore, so running the updater (more than once) is kind of pointless.

2: The updater doesn\'t reset my FPS display... is there some other method?

3: Wherever it is replacing it, all you have to do is find that line in the updaterregistry.xml file and remove it.  

I did that so it stopped overwriting my weapon texture modifications.  Since the FPS file is an added file... the way I did it in any case, there is no chance of it being updated anyway.  Which makes me certain you must be using some other method... since it couldn\'t be checking for it if you did it my way.

OK yeah I\'m curious, so how did you activate the FPS display on your client?
Title:
Post by: Xandria on November 19, 2003, 08:54:23 am
Quote
Originally posted by Kramy
P.S. I can\'t afford to buy a Linux.


Linux, along with 90% of the stuff that runs on Linux, is 100% free :D
Title:
Post by: Axsyrus on November 19, 2003, 02:12:46 pm
Quote
Originally posted by Xandria
Quote
Originally posted by Kramy
P.S. I can\'t afford to buy a Linux.


Linux, along with 90% of the stuff that runs on Linux, is 100% free :D


yup, linux is totally free... and i don\'t know what you mean by \"A Linux\",you can just download it(takes a while) and install it on your computer.

http://www.mandrakelinux.com/en/ftp.php3
http://www.redhat.com/download/mirror.html
http://www.debian.org/mirror/list
Title:
Post by: Kramy on November 19, 2003, 06:53:10 pm
Hmm...will it work without screwing up windows? I\'ve never researched Linux because I assumed it would screw up windows.....ahh, that\'s a really bad reason. :D

Anyway, if it does, I can\'t afford to buy a new comp to put it on.

Wedge: You could just use the program.....or you could add:
System.PlugIns.iBugPlug = crystalspace.utilities.bugplug
to psclient.cfg

BTW, you seem like you know some things about PS codes, do you have any codes you want added to it? :)
Title:
Post by: Axsyrus on November 19, 2003, 07:01:29 pm
lol, no linux won\'t screw up windows, you\'ve gotta be careful windows doesn\'t screws up linux though =P

you just have to make a new partition on your harddisk to install linux..
Title:
Post by: Xandria on November 19, 2003, 07:02:41 pm
Linux is an operating system, like Windows.  So don\'t try to install it unless you know what you\'re doing, otherwise your Windows (and everything else for that matter) will dissapear.  :D

It is possible to dual-boot both OS\'s, but it\'s an \"advanced\" topic.
Title:
Post by: Axsyrus on November 19, 2003, 07:20:44 pm
hmm.. installing linux is only dangerous if you try to put it on the same partition as windows, if you just make a new partition nothing will happen(unless you really don\'t know what you\'re doing)
Title:
Post by: Kramy on November 19, 2003, 08:14:19 pm
So I could put it on F:(10gb) while windows could still run off of C:(10gb)?

Neat...but how would I dual boot them? I\'m getting more interested in this because today windows seems to be really buggy, having crashed 78 times. I think something corrupted the registry, as it keeps saying \"error - invalid fault page caused by kernal32.dll - blah blah\"

Hmm...makes me wish I had windows XP. It\'s supposed to have a full system backup. Oh well, I\'m certainly going to look into Linux now.
Title:
Post by: lynx_lupo on November 19, 2003, 09:37:21 pm
Nothing too advanced in that. Most linux setups will do the LILO(linux loader) for you...making a n-boot very simple.

Kernel32? Screwed to the bone. A truly nice time to format all and try other, like linux, OSs.
Title:
Post by: zinder on November 19, 2003, 09:41:41 pm
better look if your CPU cooler is working. I had one time page faults, cause my CPU overheated.
Title:
Post by: Kramy on November 19, 2003, 09:56:08 pm
I don\'t know what was causing it, but lucky me, I had backed up a copy of the registry before I updated a bunch of programs. :)

It seems to be working fine now.....But I\'m still going to look into Linux. How does it work, dual-booting them? Do you just alt+tab from one to the other or something?

Oh, and I\'m guessing the corrupt registry causing kernal32.dll problems had something to do with Real One Player,  because the problems appeared after I disabled it\'s transmitting abilities and renamed it\'s autoupdate files to .bad file that sux

Edit: CPU cooler is working
Title:
Post by: Rulzern on November 19, 2003, 10:39:12 pm
Dual-boot works like this: when you boot your computer, you get a menu where you can choose different OS\'es.

I really suggest looking into linux, it\'s a great learning experience if you don\'t like it, and a revelution in your computer life if you do :p

GCC is a professional state-of-the-art C/C++/Java/a few others compiler (the Gnu Compiler Collection, for a C/C++ IDE using the MINGW port of GCC (for windows) check out http://www.bloodshed.net)

The only backside of linux that\'s important to me is the lack of DX9 support (microsoft technology generally speaking doesn\'t make it to linux) although it is present to a certain extent in projects like wine and winex.
Title:
Post by: Kramy on November 19, 2003, 11:40:55 pm
Rulzern: Thanks, and I like your sig.

My comp likes to get choppy in the basement area between town and labyrinth. Not enough ram, only 256mb.
Title:
Post by: Wedge on November 19, 2003, 11:42:30 pm
Yeah that explains it, an alternate method is to create the file \"user.cfg\" in your \'Planeshift/data/config/\' directory and add \"Global.System.Plugins.iBugPlug = crystalspace.utilities.bugplug \" to it.  Since you it\'s a new file the updater doesn\'t know to check it.  Also you could remove the line where it checks for \"psclient.cfg\" in the \"updaterregistry.xml\" with your method, instead of having a program to rewrite the line.
Title:
Post by: Kramy on November 20, 2003, 12:12:18 am
But if you alter \"updaterregistry.xml\" then you\'d actually have to open another file to enable or disable the FPS counter, whenever you want it. It\'s so much easier to just check a box and click a button!

Hey, I wonder if CB will have FPS/BPS counter options in its setup menu.

Anyway, I copied down your method so that I know two ways to make an FPS counter.
Title:
Post by: Windra on November 20, 2003, 08:45:35 am
im getting a second HD soon, and linux  sounds interesting, i know little or nothing about these things atm tho >.< but i gotta learn sumtime.
How compatible is it with other things? and what are the advantages of using a linux os instead of/with windows?
And how stable is linux?
Like most ppl i realy cant stand windows, an i have a crappy old version, no matter how many times i reformat, somtething always goes wrong with a few weeks.
anyways...can any1 tell me a lil bit more bout this?
Title:
Post by: Rulzern on November 20, 2003, 02:00:07 pm
Quote
How compatible is it with other things?


Depends what you mean, most windows programs either are ported to linux, have a linux equiviliant, or work in wine/winex

Quote
and what are the advantages of using a linux os instead of/with windows?


That really varies from person to person, i like the absolute control, the feel of intergration, the Gnu Compiler Collection, quite a few linux-only/best-on-linux apps, the ability to play with my system without it dying down and crippling itself beyond recognition(although you can make linux do that, and probably will the first few times you install it, it\'s much more easy to predict and avoid on linuc IMHO), the stability, the ease of use, the rapidness of updates/development, the configurability, the extreme performance, the tiny requirements of your computer, apache and a bunch of others i forgot to mention

Quote
And how stable is linux?


My Debian Unstable (sid, bleeding edge) has crashed twice due to software (video card drivers, darn you nvidia ;) ) and thrice due to hardware issues (geforce 4 ti 4200 daytona 128MB overheats a lot :( ) and has around a year of uptime.
Title:
Post by: Xandria on November 20, 2003, 05:13:14 pm
Rulzern is correct for the most part.

Wine is a good tool, but you can\'t depend on it for everything.

And there are a ton of reasons why people like Linux better than Windows, but you\'ll just have to try it and come up with your own.  I like it because it\'s stable, reliable, and completely customizable (that, and the \"kill\" command works perfectly every time :P).

But many people switch to Linux simply because it\'s very stable.  I have never had a problem with mine crashing on it\'s own; it\'s only crashed when I did something intentionally that led to a crash.

The only problem that I run into with Linux is that I\'m a gamer, and sooner or later I have to go back to Windows to play my games :(

Other than that, pretty much anything you can do on Windows, you can do with Linux.  There are tons of free open-source programs (including PS :D) that run on Linux, and many are just plain amazing.
Title:
Post by: Rulzern on November 21, 2003, 01:09:47 am
There\'s just 1 game keeping my wintendo running, Endless Ages, a MMORPG using DX9 technology (which neither wine nor winex have any good grasp of yet), other than that one game, i have more fun in linux than in windows :p
Title:
Post by: Windra on November 24, 2003, 04:55:28 pm
I Dont think i should switch to linux, even tho i hate windows.
I need direct X and im playing games almost all of the time, as well as chatting and using other stuff, most of which need shockwave etc...i dunno if linux is compatable with that.
ill just havr to stick with the constant crashes and realy oudated windows i have.
Title:
Post by: Rulzern on November 24, 2003, 09:12:28 pm
linux can handle shockwave, and i think wine can handle applications to create shockwave stuff (i don\'t remember the names, hehe)

go to http://www.transgaming.com and click games, and search for whatever games you are playing on windows, to see if they are supported and have been tried in winex.