Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (AndrewAMD, chsmac85, NeoDumont, dr_panther, TedMar), 1,095 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 3 of 4 1 2 3 4
Re: Why wont this work? [Re: gamingfan101] #271016
06/10/09 20:27
06/10/09 20:27
Joined: Apr 2009
Posts: 298
Southern Oceans
KiwiBoy Offline
Member
KiwiBoy  Offline
Member

Joined: Apr 2009
Posts: 298
Southern Oceans
What about this?
"awesome-fire-dragon-ablaze.jpg"
I havnt ever seen a def like this before, shouldnt it be;
'awesome_fire_dragon_ablaze.jpg' as I amnot sure if the syntax is readable or even permitted.

[edit] Wooopsies...and you dont actually have a level loading up do you ? In main;
level_load = " ???"'

Last edited by KiwiBoy; 06/10/09 20:30.

Use the 'manual' Luke, the manual is your friend. 'Self reminder' smile

My WebPage
Re: Why wont this work? [Re: KiwiBoy] #271023
06/10/09 20:34
06/10/09 20:34
Joined: Jun 2009
Posts: 148
G
gamingfan101 Offline OP
Member
gamingfan101  Offline OP
Member
G

Joined: Jun 2009
Posts: 148
awesome-fire-dragon-ablaze.jpg is the name of the image, and that image works fine. and im still new to all this so i dont actually have a level, its just a picture with a button to end the program. Similar to workshop 06.


Sorry, im new. I have a tendency to ask really simple questions, so please be patient.
Re: Why wont this work? [Re: gamingfan101] #271025
06/10/09 20:38
06/10/09 20:38
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
Then just change main to be this...
Code:
function main()
{
video_mode = 7;
level_load("");
screen_color.red = 100;
}


And if it STILL doesnt go, whats the name of your file?
Make sure its saved as somthing.C and not wdl.
And what is the error message that it spits up when it fails?
If you dont get one, go into SED/Options/Preferences/ and delete
the -eq out of the command-line options and try again.

Last edited by EvilSOB; 06/10/09 20:42.

"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: Why wont this work? [Re: EvilSOB] #271029
06/10/09 20:59
06/10/09 20:59
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline
Expert
alibaba  Offline
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
as i said you must remove:
while (key_any) {wait (1);}


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
Re: Why wont this work? [Re: alibaba] #271033
06/10/09 21:39
06/10/09 21:39
Joined: Jun 2009
Posts: 148
G
gamingfan101 Offline OP
Member
gamingfan101  Offline OP
Member
G

Joined: Jun 2009
Posts: 148
ok, heres the new code, for some reason now it takes forever to load, and when it does the screen is just black, What am i missing? Im really sorry for bugging you all with this.

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


BMAP* firebackground = "awesome-fire-dragon-ablaze.jpg"; // dragon fire background with button on it

PANEL* first_pan = // my first panel
{
pos_x = -40;
pos_y = 0;
layer = 1;
bmap = firebackground;
button(300, 0, "stopclicked.jpg", "stopnormal.jpg", "stopnormal.jpg", quit_program, NULL, NULL);
flags = OVERLAY | VISIBLE;
}
BMAP* pngRobot = "LDDScreenShot1.png"; // robot in foreground

PANEL* second_panel =
{
pos_x = -270;
pos_y = -100;
layer = 2;
bmap = pngRobot;
flags = OVERLAY | VISIBLE;
}

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

function main()
{
video_mode = 7;
level_load("");
screen_color.red = 100;
}


function mouse_startup()
{
mouse_mode = 1;
while (1);
{
vec_set(mouse_pos, mouse_cursor);
wait(1);
}
}


Last edited by gamingfan101; 06/10/09 22:12.

Sorry, im new. I have a tendency to ask really simple questions, so please be patient.
Re: Why wont this work? [Re: gamingfan101] #271044
06/11/09 00:23
06/11/09 00:23
Joined: Oct 2004
Posts: 4,134
Netherlands
Joozey Offline
Expert
Joozey  Offline
Expert

Joined: Oct 2004
Posts: 4,134
Netherlands
You still don't call the mouse function (with the previous code).

function main()
{
...
mouse();
}

Last edited by Joozey; 06/11/09 00:25.

Click and join the 3dgs irc community!
Room: #3dgs
Re: Why wont this work? [Re: Joozey] #271115
06/11/09 10:14
06/11/09 10:14
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline
Expert
alibaba  Offline
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
he has _startup() at the name.that means it starts automatically
here i correct and tested it:
////////////////////////////////////////////////////////////////////
#include <acknex.h>
#include <default.c>
////////////////////////////////////////////////////////////////////
function quit_program()
{
sys_exit("");
}

BMAP* firebackground = "awesome-fire-dragon-ablaze.jpg"; // dragon fire background with button on it

PANEL* first_pan = // my first panel
{
pos_x = -40;
pos_y = 0;
layer = 1;
bmap = firebackground;
button(300, 0, "stopclicked.jpg", "stopnormal.jpg", "stopnormal.jpg", quit_program, NULL, NULL);
flags = OVERLAY | SHOW;
}
BMAP* pngRobot = "LDDScreenShot1.png"; // robot in foreground

PANEL* second_panel =
{
pos_x = -270;
pos_y = -100;
layer = 2;
bmap = pngRobot;
flags = OVERLAY | SHOW;
}

/////////////////////////////////////////////////////////////////////
BMAP* arrow = "arrow.bmp";

function mouse_toggle() // switches the mouse on and off
{
mouse_map = arrow; // use arrow as mouse pointer
if (mouse_mode >= 2) { // was it already on?
mouse_mode = 0;
} else {
mouse_mode = 2;
}
while (mouse_mode > 0) // move it over the screen
{
vec_set(mouse_pos,mouse_cursor);
wait(1);
}
}
function main()
{
video_mode = 7;
screen_color.red = 100;
mouse_toggle();
}



Last edited by alibaba; 06/11/09 10:35.

Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
Re: Why wont this work? [Re: alibaba] #271205
06/11/09 18:47
06/11/09 18:47
Joined: Oct 2004
Posts: 4,134
Netherlands
Joozey Offline
Expert
Joozey  Offline
Expert

Joined: Oct 2004
Posts: 4,134
Netherlands
Well, startup didn't work for me while adding into the main did. So aparantly it doesn't start in all cases wink.


Click and join the 3dgs irc community!
Room: #3dgs
Re: Why wont this work? [Re: Joozey] #271225
06/11/09 20:34
06/11/09 20:34
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline
Expert
alibaba  Offline
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
ah ok sorry. but now the code should work and i didnt use _startup


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
Re: Why wont this work? [Re: alibaba] #271230
06/11/09 21:02
06/11/09 21:02
Joined: Jun 2009
Posts: 148
G
gamingfan101 Offline OP
Member
gamingfan101  Offline OP
Member
G

Joined: Jun 2009
Posts: 148
oh ok, i got it working now, thanks! im sorry for bugging you all with these questions, but can you please help me with two more things. One, in my program ive got the button set to OVERLAY but the black outside still shows up, any ideas? And two, what does it mean when the engine says "invalid slider size"?


Sorry, im new. I have a tendency to ask really simple questions, so please be patient.
Page 3 of 4 1 2 3 4

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