|
1 registered members (TipmyPip),
18,633
guests, and 5
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Path/KH Controls/Jumping
[Re: JakeBilbe]
#371612
05/23/11 11:43
05/23/11 11:43
|
Joined: Feb 2010
Posts: 320 TANA/Madagascar
3dgs_snake
Senior Member
|
Senior Member
Joined: Feb 2010
Posts: 320
TANA/Madagascar
|
Hi, PRAGMA_PATH is a special define, you need to declare it like here :
#define PRAGMA_PATH "%EXE_DIR%\\images";
And I think that when you test you game with SED, the %EXE_DIR% is the SED directory, but I might be wrong. Best regards.
|
|
|
Re: Path/KH Controls/Jumping
[Re: 3dgs_snake]
#371620
05/23/11 13:27
05/23/11 13:27
|
Joined: May 2009
Posts: 5,377 Caucasus
3run
Senior Expert
|
Senior Expert
Joined: May 2009
Posts: 5,377
Caucasus
|
There is no need to use "%EXE_DIR%" to define images folder which is in the root folder of the project (from where you call "main" script). It needs to be simple like this:
#define PRAGMA_PATH "images"
This works great for me, I have no idea why it doesn't work for you... you probably doing something wrong with folders
|
|
|
Re: Path/KH Controls/Jumping
[Re: 3run]
#371650
05/23/11 18:22
05/23/11 18:22
|
Joined: Apr 2009
Posts: 81
JakeBilbe
OP
Junior Member
|
OP
Junior Member
Joined: Apr 2009
Posts: 81
|
Okay I tried with the ";" and without it gives me the same error "Can't open Vertical.jpg" here is the code:
#include <acknex.h>
#include <default.c>
#include "player.c"
#define PRAGMA_PATH "images";
PANEL* pSplash = { bmap = "intro.png"; } //intro
PANEL* pLogo = { bmap = "vertical.jpg"; } //vertical logo
PANEL* pHud = { bmap = "hud.png"; } //heads up display
the only picture inside images is vertical.jpg
|
|
|
Re: Path/KH Controls/Jumping
[Re: 3run]
#371763
05/25/11 04:37
05/25/11 04:37
|
Joined: Apr 2009
Posts: 81
JakeBilbe
OP
Junior Member
|
OP
Junior Member
Joined: Apr 2009
Posts: 81
|
It works fine with the .mdl files just not pictures, weird.
EDIT: and videos dont work either, I just get a blank screen but no errors.
Last edited by JakeBilbe; 05/25/11 05:01.
|
|
|
Re: Path/KH Controls/Jumping
[Re: JakeBilbe]
#371812
05/25/11 16:10
05/25/11 16:10
|
Joined: Feb 2010
Posts: 320 TANA/Madagascar
3dgs_snake
Senior Member
|
Senior Member
Joined: Feb 2010
Posts: 320
TANA/Madagascar
|
Hi, Videos are streamed from you hard drive, they can't be searched from path or from buffer. To use videos, you need to use the full path - or relative path from your application. Best regards.
Last edited by 3dgs_snake; 05/25/11 16:11.
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|
|
|