Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by vicknick. 06/13/24 08:51
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (Akow, AndrewAMD), 666 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19059 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Shader.c #204701
05/01/08 05:37
05/01/08 05:37
Joined: Apr 2007
Posts: 249
Louisana, USA
Ilidrake Offline OP
Member
Ilidrake  Offline OP
Member

Joined: Apr 2007
Posts: 249
Louisana, USA
I'm new to the whole lite-c thing but not entirly dumb either as I've used c++ a bit. My question is about the shader.c that was released to the public. I downloaded a copy and included the files in my current project but when i compile and attempt to run my main script I get nonexistant/empty function s_Initshader. I contacted the programmer but havent got a response. I was wondering if anyone else was experiencing problems with this package? Here's my starter code. Very simple right now as I was wanting to simply test the shaders.

#include <acknex.h>;
#include <default.c>;
#include <s_shadeC.c>;

function main()
{
level_load("SST_LEVEL001.wmb");
wait(4);
s_initShaders();
}

Thanks in advance for any assitance you can give.


Just Because Your Paranoid Doesn't Mean They Aren't After You...Because They Really Are

http://spearbang.awardspace.com/news.php
Re: Shader.c [Re: Ilidrake] #204704
05/01/08 07:33
05/01/08 07:33
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
working as the way it should be for me.

I tried to reproduce your problem, and it seems like you are usin .wdl extension instead of .c

if you dont enter any extensions, hte editor will save it as wdl, make sure you put .c at the end wile you are saving the file.


3333333333
Re: Shader.c [Re: Quad] #204751
05/01/08 14:08
05/01/08 14:08
Joined: Apr 2007
Posts: 249
Louisana, USA
Ilidrake Offline OP
Member
Ilidrake  Offline OP
Member

Joined: Apr 2007
Posts: 249
Louisana, USA
it does have the extension .c not wdl.


Just Because Your Paranoid Doesn't Mean They Aren't After You...Because They Really Are

http://spearbang.awardspace.com/news.php
Re: Shader.c [Re: Ilidrake] #204754
05/01/08 14:29
05/01/08 14:29
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
#include "s_shadeC.c"; instead of #include <s_shadeC.c>;


3333333333
Re: Shader.c [Re: Quad] #204755
05/01/08 14:32
05/01/08 14:32
Joined: May 2007
Posts: 2,043
Germany
Lukas Offline

Programmer
Lukas  Offline

Programmer

Joined: May 2007
Posts: 2,043
Germany
#include "s_shadeC.c" instead of #include "s_shadeC.c"; ;\)
No semicolon after an #include.

Re: Shader.c [Re: Lukas] #204757
05/01/08 14:41
05/01/08 14:41
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
gahh, right \:D


3333333333
Re: Shader.c [Re: Quad] #204761
05/01/08 14:55
05/01/08 14:55
Joined: Apr 2007
Posts: 249
Louisana, USA
Ilidrake Offline OP
Member
Ilidrake  Offline OP
Member

Joined: Apr 2007
Posts: 249
Louisana, USA
Okay, for some reason i got up this morning and it works. But then I added the standard shaders header to use those fxs as well and it says it the include file not found. What gives? Is the engine that buggy?

#include <acknex.h>
#include <default.c>
#include <s_shadeC.c>
#include <mtlFX.c>

I even tried renaming the mtlfx.c file to shaders.c and no luck. Am i doing something wrong?


Just Because Your Paranoid Doesn't Mean They Aren't After You...Because They Really Are

http://spearbang.awardspace.com/news.php
Re: Shader.c [Re: Ilidrake] #204762
05/01/08 14:57
05/01/08 14:57
Joined: Apr 2007
Posts: 249
Louisana, USA
Ilidrake Offline OP
Member
Ilidrake  Offline OP
Member

Joined: Apr 2007
Posts: 249
Louisana, USA
AH HA!!!!!!!! These headers have to be in the working folder of your level right?


Just Because Your Paranoid Doesn't Mean They Aren't After You...Because They Really Are

http://spearbang.awardspace.com/news.php
Re: Shader.c [Re: Ilidrake] #204763
05/01/08 15:05
05/01/08 15:05
Joined: Apr 2007
Posts: 249
Louisana, USA
Ilidrake Offline OP
Member
Ilidrake  Offline OP
Member

Joined: Apr 2007
Posts: 249
Louisana, USA
wait a minute. it loads and they work but its looking for some misc files it cant locate and neither can I. The files transform, sun, lights, fog, normal, pos are missing or something. Anyone else getting this error?


Just Because Your Paranoid Doesn't Mean They Aren't After You...Because They Really Are

http://spearbang.awardspace.com/news.php

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