Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 02/21/26 19:15
Camera always moves upwards?
by clonman. 02/21/26 09:29
Zorro version 3.0 prerelease!
by TipmyPip. 02/20/26 13:22
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 02/19/26 13:22
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 6,962 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
alx, ApprenticeInMuc, PatrickH90, USER0328, Sfrdragon
19199 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Problem migrating from C-Script to Lite-C #157685
09/29/07 09:52
09/29/07 09:52
Joined: Feb 2006
Posts: 1,011
Germany
pegamode Offline OP
Serious User
pegamode  Offline OP
Serious User

Joined: Feb 2006
Posts: 1,011
Germany
Hi everybody,

I'm currently migrating my game project from A6 to A7 from C-Script to Lite-C. After migrating all .wdl-files to .c step by step I'm getting the following error when starting A7:

-------------------
machine code generator: can not translate EQ:POINTER:FIXED:LONG

<
if (panAtStart == 0) {
>
-------------------

panAtStart is defined as:

var panAtStart = 0;

Can anybody help me?

Regards,
PGM.

Re: Problem migrating from C-Script to Lite-C [Re: pegamode] #157686
09/29/07 11:03
09/29/07 11:03
Joined: Oct 2002
Posts: 361
Germany Cologne
hack-panther Offline
Senior Member
hack-panther  Offline
Senior Member

Joined: Oct 2002
Posts: 361
Germany Cologne
Code:

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

var panAtStart = 0;

function main()
{
level_load("level.wmb");
video_set(1440, 900, 32, 1); //Video Settings
wait(1);

if(panAtStart == 0)
{
wait(1);
}
}



I have no Problems with this...

Have you included default.c and acknex.h?
Or perhaps you have forgotten a semicolon at the upper line!?!?

When not: can you post a bigger part of the code?



Re: Problem migrating from C-Script to Lite-C [Re: hack-panther] #157687
09/29/07 11:31
09/29/07 11:31
Joined: Feb 2006
Posts: 1,011
Germany
pegamode Offline OP
Serious User
pegamode  Offline OP
Serious User

Joined: Feb 2006
Posts: 1,011
Germany
I found the mistake. I had a double definition of the variable panAtStart in another included .c-file. There panAtStart was defined as ANGLE*.

Regards,
PGM.


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