Plugin for 3DGS

Posted By: TripleX

Plugin for 3DGS - 04/08/05 20:02

Hey

A new plugin for 3DGamestudio is finished. Please report as much bugs as possible (might be some in it, because of some Window problems and a lot of functions).

The complete feature list:


[REGISTRY]
- Create/Remove/Open Keys
- Create/Remove/Receive Values (as string or var.. binary is not possible at the moment)
- List all subkeys, values in a (sub)key.
- Change the "region" (??) the keys are created / opened. (HKEY_CURRENT_USER, HKEY_LOCAL_MACHINE etc.)


[MP3 FUNCTIONS]
- play over 128 different (as much as your soundcard supports ) mp3, wma, ogg, midi, wav etc. songs
- stop them
- pause and resume a song
- Change the position of the song (e.g. jump from 10 seconds to 70 seconds)
- change the speed of the song
- change the volume and the balance
- Copy the song into the memory and play it when YOU want to play it (you can even load all songs at the beginning, so you have no lags when a song starts playing.. but i won't recommand that.
- get the length (in seconds) of a song
- remove it out of the memory
- loop songs (and change looping/not looping while the song is playing)
- change the balance, volume and the frequency for all tracks
- read the ID3 tags out of a mp3 file
- play/stop/remove all tracks
- change a master volume in per cent (set all tracks 30% more quite)


[FILE FUNCTIONS]
- Write/Read chars/int/long/double/float/short/bools
- Change the File cursor position (fseek)
- write/read/append
- Insert bytes in a file
- Replace bytes in a file
- Erease bytes in a file


[ADDIONAL FEATURES]
- Show message boxes
- Remove directorys (with / without all subfolders)
- Get Imagewidth / height / format / mipLevels out of an filename
- Enable Fullscreen Dialog boxes
- Get Game and Windows absolute Path
- Open Internet Explorer with a specific website
- Open the default browser with a specific website
- Copy texts into the clipboard
- Paste texts out of the clipboard
- Clear the clipboard
- Get the CPU speed (mhz)
- Get the Host name
- Repositionate the Acknex window
- Get the max texture width/height / anisotrophy supported by your adapter
- Some string comparing functions (is string writte in lowercase/uppercaseetc.)
- Opens a File (no matter what filetyp) with the default program
- Minimize the Acknex Window
- Get/set The acknex title
- Delete Files
- Get the refresh rate of the monitor
- Open / Save Dialog
- Take screenshots of your game (save only a section of the screen)
- Get the Adapter Name
- Download Files in a differen thread (you can play while downloading)
- Get the download status and the Number of bytes to download
- Stop Downloads
- Copy files
- Get/Set file attributes (read only- system file - hidden - normal etc.)
- List all Folders / Files in a folder
- Get the Ip adress
- Get the Windows Version
- Save changed Bitmaps (pixel_for-bmap etc.). At the moment saving is only possible in *.bmp, *.dib und *.dds format


Please test as much as possible in ordner to remove every bug. If you have questions contact me under support(at)EasyParticle.de .

The Downloadlink can be found her. If this dll blows up your windows version its not my fault (sorry i have to write this There shouldn't be any bug which destroys windows.. but ok)

have fun with it.
New feature wishes are always appreciated.

TripleX

PS: sorry for my bad english in this post and in the DLL
Posted By: JvsJGameDesign

Re: Plugin for 3DGS - 04/08/05 20:10

Very nice!
Lots of features!
I especially love to features of retrieving the machine specifications. Small question, is it possible to use these specification data to compare it with the ones I descide and integrade in the game, and when the specs are too low, an error panel shows up?

(Srry for my bad englist. Just answer with yes or no .
Posted By: TripleX

Re: Plugin for 3DGS - 04/08/05 20:12

@JvS yep of course this is possible..
A small example:

//DllGetCpuSpeed needs a bit time for calculating (1/4 second)
if(DllGetCpuSpeed() < 1000) { /*error panel */ return; }

TripleX
Posted By: JvsJGameDesign

Re: Plugin for 3DGS - 04/08/05 20:34

Thank you very much. I promise I will use your plugin in my games and keep you in the credits!
Posted By: TripleX

Re: Plugin for 3DGS - 04/08/05 20:53

thanks

even if its not neccesarry credits would be very nice.

TripleX
Posted By: fastlane69

Re: Plugin for 3DGS - 04/08/05 23:07

Drool!!!!!!

Nice...DL it now...putting it to good use later!

Thanks X^3 !!
Posted By: William

Re: Plugin for 3DGS - 04/09/05 01:04

Whoa! Thanks for the great contribution - the features will really come in handy!!!
Posted By: WHURL

Re: Plugin for 3DGS - 04/09/05 05:57

You've done it again, TripleX!

What a list! Extremely useful. I hadn't even finished playing with your last dll.

Thanks so much for contributing it. I'll certainly credit you where I use it.
Posted By: XeXeS

Re: Plugin for 3DGS - 04/09/05 07:40

First good work ?

I have tested the Plugin just for fun on different Magines. To get the System Informations. But I have hehe a machine with more than one Graphic Adapters and Iam sure I get the Informationen of the wrog Adapter.

I get the following:

Max Texture Width = 1024 x 1024
But the Graphiccard 3DGS Uses is the GF 6 and not the GF 2 MX on my Mainboard of my second machine.

Hope you can fix it
Posted By: TripleX

Re: Plugin for 3DGS - 04/09/05 11:45

@all thanks for your kind words.. any more comments /feature wishes?

@XeXes hmm thats weird... because i use the 3DGS IDirect3DDevice pointer for getting the Caps structure.. -> The IDirect3DDevice pointer should be created with the better adapter (gf6) and only give me the informations about the gf6 adapter..

But I'll have a look into it.

TripleX


EDIT: Ok the wrong return values with more than 1 adapter are removed..
Posted By: ShoreVietam

Re: Plugin for 3DGS - 04/09/05 13:58

Oh Mann TrippleX, du gehst ja richtig ab!

Ich hab's noch nicht getestet, aber die letzte Version am laufen.
Die Liste laesst auf jeden Fall das Wasser im Mund zusammen laufen, da muss ich einfach danke sagen, dass du sowas mit der Community teilst!
Posted By: beegee

Re: Plugin for 3DGS - 04/09/05 15:29

Wow, das ist ja jetzt echt der Hammer!
Genau, die Features, die ich brauche sind in dem Plugin.
Wirklich, ein großes Dankeschön, für dieses großartige Plugin.

Mal, ne Frage: Wie lange hast du denn für dieses Plugin gebraucht ?

----------------------------
beegee - creator of extreme stunt racing -
Posted By: TripleX

Re: Plugin for 3DGS - 04/09/05 16:11

@begee Hmm naja ich hab dieses plugin ja nicht dauerhaft programmiert.. Ist ja eher eine Sammlung aller bis lang programmierten einzelnen dll's (+ sehr viele neue Funktionen) Also würd ich das jetzt alles hintereinander programmieren würd ich warscheinlich so 24 Stunden brauchen (also arbeitsstunden).

mfg
TripleX
Posted By: DCorwin

Re: Plugin for 3DGS - 04/11/05 05:34

Nice! Would be really handy to be able to get the sound file's current time, so then you can use it as a master timeline or trigger, etc.
Posted By: TripleX

Re: Plugin for 3DGS - 04/12/05 19:46

dll_mp3getposition(id);
This function returns the curret time of the Music Track

TripleX
Posted By: Nadester

Re: Plugin for 3DGS - 04/12/05 20:51

Very nice TripleX!
Posted By: TripleX

Re: Plugin for 3DGS - 04/12/05 20:58

@Nad Btw as you remember i got the Open/Save plugin from you.. This was the beginning of this dll (at the beginning of my SDK programming..) Now you see what you can get out of one single function

TripleX
Posted By: DEX

Re: Plugin for 3DGS - 04/13/05 17:16

In order to make "game activating sistem" on my web site I need a command to retreive users hard disk number. Can you add this feature please?
I made this feature in my Macromedia Director games and it function cool.
Protection is very simple:
-you will allow user to run your game 15 times without registering.
-when he want to register, he will press button register and you will generate some number, made from his hard disk number, so it will be crypted.
-then user connect to your web site and enters that number in field "Request activation code". Then number will be mixed litle more and he will get new mixed activation code.
-he will input that activation code somewhere in game activation.
-then number will be readed and decrypted with same 2 algorythms when you mixed it up just reversed order and youl get hard disk number if corrected number is entered.
-then simply compare original hard disk number and this one you got from user enter and if they OK game is activated.

Perfect protection system. Even if they copied your CD thay can not use it until game is activated on web site.


Maybe someone found this system interesting. It works for me very nice (with macromedia director) and I want to implement it here, but I need command to read users hdd number
Posted By: Orange Brat

Re: Plugin for 3DGS - 04/13/05 17:29

This is a great DLL and Dejan's system sounds nice, too. If possible, that would be a great addition.
Posted By: mk_1

Re: Plugin for 3DGS - 04/13/05 20:30

"Ooops! My hard drive crashed yesterday and the activation code you sent me doesn't work anymore..."
"Hey guys! Why can I install your game only on c: and not d: ?"
Posted By: DEX

Re: Plugin for 3DGS - 04/14/05 13:51

He he, nice try. You will allow 3 HD changes per game copy, but as you will have registered name and adress and all data, that will not be the problem, I now from my expirience with that system.
Posted By: Spider_Man

Re: Plugin for 3DGS - 05/03/05 19:44

Very great ,
but can some one tell me kindly where to add the plugin , and how to use it please ?

note: i added to the WED plugin folder !

Regards
Posted By: Tozzy

Re: Plugin for 3DGS - 05/03/05 21:46

Man, TripleX you must be a genius .

Great stuff!
Posted By: dutchie

Re: Plugin for 3DGS - 05/05/05 20:30

yes, really usefull.

but maybe it is a idea to add another function wich checks the dir to the currents user documents folder.
for stuff like screenshots, savegames, etc.
what many current games have for their savegames.
Posted By: Sinthoras

Re: Plugin for 3DGS - 05/31/05 20:46

Hi, Triple X,
super funktionen, die dll, nicht schlecht!!!

Ich hätte noch eine kleine Anmerkung:
warum lässt du die Dll in einem dll-handle speichern und "vertraust" darauf, dass man sie am ende schliesst?
du könntest auch sagen, man sollte einen "plugin-ordner" anlegen, worin man die dlls reinkopiert.
diese werden dann automatisch geöffnet und geschlossen.
btw:
plugindir "pathname";

( vielleicht deswegen weil man deine dll aus code(?)-gründen nicht gleich beim engine-start benutzen darf? )

So, das wars mit der Anmerkung ^^

hier jetzt noch eine Frage an deine Datei-arbeit-Künste:

Code:

/* DllEreaseBytes deletes specific Bytes out of a file.

Example:

DllEreaseBytes(400,20,"Test.txt"); //delete bytes 400-420 out of the file Test.txt */
dllfunction DllEreaseBytes(pos,num,file);



wie kann man mit c++ in dieser form bytes aus dateien löschen? Überschreiben ist ja kein Problem :P aber LÖSCHEN... da verschiebt man doch die hinteren bytes alle... hmmm...

es wäre nett, wenn du den soucecode für diese funktion postest oder an meine mail (Fixi_03@gmx.de) schickst, ich hab mich dumm und dämlich gesucht im msdn

Schonmal vielen Dank für alles besonders natürlich für die Dll gg

Sinthoras
Posted By: TripleX

Re: Plugin for 3DGS - 05/31/05 21:30

yep, dass mit den plugindir hab ich nicht gemacht, damit die unterstüzung zu A5 gewährleistet ist.

Hab dir den source code geschickt (ereasen funzt einfach so dass ich den 1. teil der datei einlese und dann den 2. teil.. jetzt fass ich die zusammen.. fertig)

mfg
TripleX
Posted By: Sinthoras

Re: Plugin for 3DGS - 06/01/05 14:07

@plugindir okay, dann ist es klar :P

@erase mm danke für den source code. ich hab es auch schon so ähnlich gelöst, nur mit einer datei, nicht mit "new"string. schade, ich hätte gedacht, man könnte mit einer funktion o.ä. einfach bytes aus dateien löschen... naja, egal. Vielen Dank auf jeden Fall, trotzdem .

(du bist ja sehr auf abwärtskompatibilität aus, mhm? die a5-sdk begriffe überall...)

Mfg,
Sinthoras
Posted By: TripleX

Re: Plugin for 3DGS - 06/01/05 18:33

@Sinthoras Hmm ne das ist nur ne Sammlung aus Dll Funktionen.. Und hatte kein Bock die alten Funktionen Auf "A6 SDK Syntax" umzuschreiben. Daher hab ich mir gesagt, warum nicht einfach als großes Feature anpreisen dass die DLL so abwärtskompatibel ist

mfg
TripleX
Posted By: Sinthoras

Re: Plugin for 3DGS - 06/01/05 20:02

^^ klar, wenn man's schon hat, warum nicht.
Posted By: iWaNtToKnOw

Re: Plugin for 3DGS - 07/11/05 14:02

very usefull dll, in my game i use your dll to list all multiplayer levels in the folder and if the server level in not found the game download it. Is possible download files from other PC using your Dll?
Posted By: dennis

Re: Plugin for 3DGS - 07/20/06 09:42

Die Dll ist echt gut!!!

Ich habe allerdings ein Problem mit der Funktion "DLLSaveBitmap(bmp,str);"

Kannst du für diese Funktion ein Beispiel posten?
© 2024 lite-C Forums