Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, dr_panther), 1,282 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rating: 4
Publishing and binding files #264762
05/08/09 00:37
05/08/09 00:37
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline OP
User
Ottawa  Offline OP
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
Hi! smile

The coding is over and you want to publish with Ver 7.73.3 Pro

This is the 5 parts methode that I use to bind all my files in a resource file .wrs and
create a .exe for sharing.
The size of all the combined files dropped from 300 megs or so to 83 megs. smile

Part I : Cleaning

1) Open your main file (main.c)

Look at your code to remove things like :
Shorcuts....on_s do.....
#include <default.c>

Save your main.c

2) Remove old .cd folder

Part II : Publishing ...first time

In WED (or SED) use File...>Publish...> exe

The purpose of this publish is two fold :
a) This will put all the files for your game in a main.cd folder.
This way, they are grouped and the junk (other files) will not be in the way for the next steps.

b) Test your game using the .exe (main.exe) to see if everything works.
If there are any problems, they will pop up and you will have to resolve the issues.

Part III : Creating a .wdl file

1) Using Window options ...Explorer....the right side of the mouse...find out
how many files are in the .cd folder

2) Open SED and start a new file bind_file.wdl.
In this new file place all the names of the files (by hand or by script)
that are present in the main.cd folder from Part II.
effects, levels, menu, models, music, sounds, syntax, terrain, textures, wads

Place in the format : BIND "name.mdl"; ...see the manual

NOTE : I have a small .c script that uses txt_for_dir
This instruction can be used to scan a folder and pick up all the files.


3) At the top of this file, insert in C-Script format,
the paths that have to be followed in order to find all the files.

Quote:

////////////////////////////////////////////////////////////////////////////
// The PATH keyword gives directories where files can be found.
PATH "..\\dr_pcx";
PATH "..\\dr_tga";
PATH "..\\Models";
PATH "..\\Wave_sounds";
/////////////////////////////////////////////////////////////////
// warlock distributable Resource
BIND "warlock.mdl";
BIND "staff.mdl";


Save the file as a WDL file ex: bind_file.wdl

Part IV : Creating the resource

Open WED and follow the instructions from the manual :RESOURCE "resourcename".

WDL files only. Done in Part III
Here's a the quote from the manual ...one instruction per line.
Quote:

For creating a resource,
1- open a new project in WED,
2- save it under an arbitrary name, ---> game02_date
3- assign a WDL script that contains the BIND statements in Map Properties ex: bind_file.wdl
4- and perform : File ...> Publish....> Resource

The .wrs file is created in a bind_file.cd subdirectory.



a) The publish / resource function takes time.
if errors pop up go back to the bind_file.wdl and make corrections.

b) Move the file to your work directory : bind_file.wrs


Part V : Adding resource to your publish of the game

In SED create a new file under the name main.wdl (same name as your main.c file)
Quote:

RESOURCE "bind_file.wrs"; // <------The bind file
PATH "..\\des_pcx";
PATH "..\\des_bmp";
PATH "..\\des_tga";
PATH "..\\Models";
PATH "..\\son_wav";

WINDOW WINSTART
{
MODE STANDARD; // always required
COMMAND "-nwnd"; // no start window
}


Save file as main.wdl

Part V : Publishing ...last action.

In WED open your world....the main.c file is attached to this title.
Use : File....>Publish....> Check the following boxes : Starter and Exe.
Publish this game. You will find the result in main.cd

1)
Open the main.cd folder
and remove all the unwanted files...those that you know are in your BIND file.
(move them to a temporary folder...just in case you need them)

2)
Check your .exe file file again.
You might have to add some files to this folder ...ex: d3dx9_30.dll .

When you can play your game without any error messages you are on your way. smile

Ottawa smile

Re: Publishing and binding files [Re: Ottawa] #264800
05/08/09 08:40
05/08/09 08:40
Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Cowabanga Offline
Expert
Cowabanga  Offline
Expert

Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
I wish i have Pro. frown

Re: Publishing and binding files [Re: Cowabanga] #264807
05/08/09 10:25
05/08/09 10:25
Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
VeT Offline

Serious User
VeT  Offline

Serious User

Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
great smile


1st prize: Lite-C and Newton 2.17 by Vasilenko Vitaliy

Newton2 videos: http://tinyurl.com/NewtonVideos
LiteC+Newton2 discussion: http://tinyurl.com/NewtonWrapperDiscussion
Latest LiteC+Newton2 version(v23, from 29.10.2009): http://depositfiles.com/files/ae1l0tpro
Re: Publishing and binding files [Re: VeT] #283898
08/10/09 16:43
08/10/09 16:43
Joined: Jul 2009
Posts: 25
oyUn ceHeNnEMi
turkkanka Offline
Newbie
turkkanka  Offline
Newbie

Joined: Jul 2009
Posts: 25
oyUn ceHeNnEMi
Thanks Ottawa laugh


Turkish Game Producer Team

oyUn ceHeNnEMi
Re: Publishing and binding files [Re: turkkanka] #283913
08/10/09 18:26
08/10/09 18:26
Joined: Jul 2009
Posts: 25
oyUn ceHeNnEMi
turkkanka Offline
Newbie
turkkanka  Offline
Newbie

Joined: Jul 2009
Posts: 25
oyUn ceHeNnEMi
Please you send example


Turkish Game Producer Team

oyUn ceHeNnEMi
Re: Publishing and binding files [Re: turkkanka] #294338
10/18/09 14:45
10/18/09 14:45
Joined: May 2006
Posts: 133
ME
Mysterious Offline
Member
Mysterious  Offline
Member

Joined: May 2006
Posts: 133
ME
Hi
I am using High-language (CODEGEAR C++) what can I do to create the wdf file and where should I put it to make sure that the exe will interact with it

thanks

Re: Publishing and binding files [Re: Mysterious] #294408
10/18/09 23:14
10/18/09 23:14
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline OP
User
Ottawa  Offline OP
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
Hi!

I don't know codgear but I assume that you can make a .c file.
If so, you make a .wdl file the same way and give it the same title as .c
ex (main.c and main.wdl)
Place both in the same work folder.

Again assuming that you can compile the .c file maybe the .wdl file will be used.
The command Publish does this.


Hope this helps!
Ottawa laugh

Ver 7.86.2 Pro and Lite-C
Re: Publishing and binding files [Re: Mysterious] #294409
10/18/09 23:15
10/18/09 23:15
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline OP
User
Ottawa  Offline OP
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
Hi!

I don't know codgear but I assume that you can make a .c file.
If so, you make a .wdl file the same way and give it the same title as .c
ex (main.c and main.wdl)
Place both in the same work folder.

Again assuming that you can compile the .c file maybe the .wdl file will be used.
The command Publish does this.


Hope this helps!
Ottawa laugh

Ver 7.86.2 Pro and Lite-C
Re: Publishing and binding files [Re: Ottawa] #294432
10/19/09 06:09
10/19/09 06:09
Joined: May 2006
Posts: 133
ME
Mysterious Offline
Member
Mysterious  Offline
Member

Joined: May 2006
Posts: 133
ME
Ok I did what you said,
now I have two "acknex.wdf" one of them in the publish folder level1.cd and the second one "ACKNEX.WDF" in the work folder,
but I have many levels should I create one for each level, or I can use the generated one from level1 with other levels (each level is in standalone wed and work folder),
last question where should I put the acknex.wdf file? in the folder that contain the exe file or in the folder contains the resource ".wrs" files (my game folder contains the required files like exe acknex.dll d3d....dll and a folder named "Data" contains all resources files needed for the game )

thanks for help Ottawa

Re: Publishing and binding files [Re: Mysterious] #294481
10/19/09 13:29
10/19/09 13:29
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline OP
User
Ottawa  Offline OP
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
Hi Mysterious!

1) now I have two "acknex.wdf" : It's the one in the CD folder that will do
the work when you move your game to another computer.

2)but I have many levels should I create one for each level, : Are you making
a game or many games? If your are making one game they should be in the same
.cd folder after publishing.

3)where should I put the acknex.wdf file? : in the folder contains the resource ".wrs" : After the publishing of your game in the .cd folder test your game with
this file out of the folder If the game doesn't work you will have your answer.
edit : I checked my bindfile.wdl and acknex.wdl is not in it.

Last edited by Ottawa; 10/19/09 13:52.

Hope this helps!
Ottawa laugh

Ver 7.86.2 Pro and Lite-C

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1