Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (AndrewAMD, TipmyPip, OptimusPrime), 15,229 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
including a c file to shooter wdl???? HELP #177070
01/08/08 18:14
01/08/08 18:14
Joined: Jun 2006
Posts: 44
A
ajs2 Offline OP
Newbie
ajs2  Offline OP
Newbie
A

Joined: Jun 2006
Posts: 44

Below is code that adds a panel to a screen. It works!!
My problem is I can't add it to my project .wdl file.

I remove the main function
I have it saved in the template6/code folder with all the wdls.
I saved it as name.c

then i add include
include <script07_2.c>;
to my main wdl.

When i compile my main wdl it says it cannot open name.c

PLEASE ANYBODY HELP!!!


////////////////////////////////////////////////////////////////////
#include <acknex.h>
#include <default.c>

////////////////////////////////////////////////////////////////////

BMAP* first_pcx = "first.pcx"; // my first bmap

PANEL* first_pan = // my first panel
{
pos_x = 0;
pos_y = 0;
layer = 1;
bmap = first_pcx;
flags = OVERLAY | VISIBLE;
}

/////////////////////////////////////////////////////////////////////

function main()
{
video_mode = 7;
screen_color.blue = 150;
}

Re: including a c file to shooter wdl???? HELP [Re: ajs2] #177071
01/08/08 18:29
01/08/08 18:29
Joined: Jul 2005
Posts: 262
Earth, The Netherlands
NL_3DGS_n00b Offline
Member
NL_3DGS_n00b  Offline
Member

Joined: Jul 2005
Posts: 262
Earth, The Netherlands
I think you cannot combine WDL and C that way...


The best games are the games you create yourself.
Re: including a c file to shooter wdl???? HELP [Re: NL_3DGS_n00b] #177072
01/08/08 19:36
01/08/08 19:36
Joined: Jun 2006
Posts: 44
A
ajs2 Offline OP
Newbie
ajs2  Offline OP
Newbie
A

Joined: Jun 2006
Posts: 44
So how do i do it??

How do ppl add lite c to there progrmas so???????

Re: including a c file to shooter wdl???? HELP [Re: ajs2] #177073
01/08/08 22:56
01/08/08 22:56
Joined: Apr 2004
Posts: 516
USA
Trooper119 Offline
User
Trooper119  Offline
User

Joined: Apr 2004
Posts: 516
USA
I'm not sure but I haven't heard of C and lite-C being compatible, its like saying Python and Visual Basic should be able to be included within another, it simply can't be done, there two different to coexist. Unless lite-C is built with C which I'm not sure about. But in lite C I include files that I have written by things like Code:
 #include "menu.c" 

try that and see what happens. Note: When I do this, menu.c is in the file I'm calling the code I'm writing from.

Last edited by Trooper119; 01/08/08 23:20.
Re: including a c file to shooter wdl???? HELP [Re: Trooper119] #177074
01/08/08 23:02
01/08/08 23:02
Joined: Jun 2006
Posts: 44
A
ajs2 Offline OP
Newbie
ajs2  Offline OP
Newbie
A

Joined: Jun 2006
Posts: 44
See the problem i have is i have started my project using the shooter template!! This calls wdl files.

I need to make text appear when I move beside an object.

I have code to to this but ppl are telling me i need to use this new "lite c" code!!!

This part of 3dgs is very confusing!!!

Re: including a c file to shooter wdl???? HELP [Re: ajs2] #177075
01/08/08 23:37
01/08/08 23:37
Joined: Oct 2004
Posts: 4,134
Netherlands
Joozey Offline
Expert
Joozey  Offline
Expert

Joined: Oct 2004
Posts: 4,134
Netherlands
You either start a lite-c project or a c-script project. You can not combine them. If you want your lite-c code to work, you need to start from scratch with lite-c using .h and .c files. Otherwise you have to convert your lite-c code to c-script and implement it in the template.


Click and join the 3dgs irc community!
Room: #3dgs
Re: including a c file to shooter wdl???? HELP [Re: Joozey] #177076
01/10/08 13:44
01/10/08 13:44
Joined: Jun 2006
Posts: 44
A
ajs2 Offline OP
Newbie
ajs2  Offline OP
Newbie
A

Joined: Jun 2006
Posts: 44
DO i Have to convert my lite-c code manully to c-script??
All the tutorials i find are in lite_C!!!


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

Gamestudio download | 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