Game Launcher
Is a fully customisable launcher for your games .
In it users are able to set game resolution , and fog (no,low,normal,high) , why fog ? Becouse if fog is "high" your game would work better on older computers for example...
In it , you can also put your picture (in the place where the "game laucher made by dodic" is).
-------------------------------------------------------
----------How to use (not included in .zip file !)-----
-------------------------------------------------------
Unfortionatly i DIDN`T made this to be configurable from Dark Basic , i made it all in .ini files , and i`l explain how to use them all now...
Quote: "1. when you download the zip file , you should have this files :
VVMT31W.DLL
VVM31W.DLL
VTK3231W.DLL
VTK1631W.DLL
VTHK31W.DLL
VOFLR31W.SLL
VGUI31W.SLL
VBAS31W.SLL
res_select.ini
pic_location.ini
main01.frj.frj
main01.frj
Game_Launcher.tkn
Game_Launcher.exe
fog_select.ini
exe_location.ini
config_title.ini
code.dba (example of usage inside dark basic)
Folder : Launcher_data
Default.bmp"
Quote: "2. CONFIGURING THE LAUNCHER
FIRST PUT ALL THE GAME FILES/MEDIA IN THE SAME FOLDER AS LAUNCHER IS , OR ALL THE FILES FROM LAUNCHER IN THE SAME FOLDER WHERE THE GAME/MEDIA IS..
To start your game , you will hafe to run Game_Launcher.exe if you want laucher to start , so i suggest you put your game into another folder , becouse two exe`s in same folder might confuse players of your game.
All the ini files are for configuring , now we are going to clear out witch is for what :
==================
"exe_location.ini"
==================
the location or name of your GAME EXE is stored in there , so open it from notepad , and write the name or location.
Example , if your game exe is in the same folder as game launcher is , then put this :"yourgamename.exe"
and save.
If your game is in another folder , then put : "foldername/gamename.exe" (.exe isn`t required if that is the only file inside that folder with that name)
==================
pic_location.ini
==================
Here you put your picture`s adress , name (same as for exelocation , only it`s .bmp ONLY) that you want to show in game launcher.
==================
config_title.ini
==================
Here you put the game launcer`s window title (put the name of your game or something like that)
THAT`S ALL THE INI`S YOU NEED TO EDIT FROM NOTEPAD , DON`T CHANGE THE OTHER INI`S
"
3. USAGE OF IT IN DARK BASIC.
As i "said" you will NOT run launcher from db , then launcher will run compiled .exe from db .
HERE`S WHAT YOU NEED TO PUT INTO YOUR DB GAME SO THAT LAUNCHER RESOLUTION AND FOG SETTINGS COULD APPLY IN YOUR GAME :
`===================================
`===Resolution Setup================
`====Don`t change lines below=======
`===================================
open to read 1,"res_select.ini"
read string 1,res$
if res$="640,480,16" then set display mode 640,480,16
if res$="800,600,16" then set display mode 800,600,16
if res$="1024,768,16" then set display mode 1024,768,16
if res$="1152,864,16" then set display mode 1152,864,16
if res$="1280,1024,16" then set display mode 1280,1024,16
if res$="640,480,32" then set display mode 640,480,32
if res$="800,600,32" then set display mode 800,600,32
if res$="1024,768,32" then set display mode 1024,768,32
if res$="1152,864,32" then set display mode 1152,864,32
if res$="1280,1024,32" then set display mode 1280,1024,32
close file 1
`--------------------------------------------------------
`===================================
`=======Fog setup===================
`===Change the vaules to adjust fog=
`===================================
open to read 2,"fog_select.ini"
read string 2,fog$
`For fog OFF
if fog$="Off" then fog off
`For fog LOW
if fog$="Low"
fog on
`Replace "value" with a number that you want the fog distance to be if "LOW"
`is selected
fog distance value
endif
`For fog Normal
if fog$="Normal"
fog on
`Replace "value" with a number that you want the fog distance to be if "Normal"
`is selected
fog distance value
endif
`For fog High
if fog$="High"
fog on
`Replace "value" with a number that you want the fog distance to be if "High"
`is selected
fog distance value
endif
close file 2
`-------------------------------------------------------------
`===============Put your game code below======================
`-------------------------------------------------------------
(But you need to add do/loop or add your game or something before compiling to exe , or else it will just quit when runned).
I hope someone will use this in they`r games . Why ? Becouse it looks like normal game launcher , it looks nice to have , and it uses windows gui . (many of commercial games have very simmiliar launchers)
NOTE : IF YOU WANT TO CHANGE THE game_launcher.exe to your games name , then you must also change game_launcher.tkn to the same name as exe is , but it must be .tkn
It took me a week to write this launcher so i hope it`s good.
And you can freely suggest for new features or whatever you would like me to change/add and i will try to include it into next version.
Maby options like Texture size or so...
p.s. you must not make any of location ini`s BLANK or else it won`t work (offcourse it wont , but i mean it will return an error..)
my posts have been read or opened

times !