Gamestudio Links
Zorro Links
Newest Posts
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
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, dr_panther), 730 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
lorikob361, LucasJoshua, Baklazhan, Hanky27, firatv
19054 Registered Users
Previous Thread
Next Thread
Print Thread
Rating: 5
Page 2 of 3 1 2 3
Re: Lite-C in Visual Studio [Re: Tor] #115198
03/27/07 22:08
03/27/07 22:08
Joined: Jul 2006
Posts: 783
London, UK
sheefo Offline OP
User
sheefo  Offline OP
User

Joined: Jul 2006
Posts: 783
London, UK
It seems to be different in Visual Studio 8
I can't find where I can do this.

Re: Lite-C in Visual Studio [Re: sheefo] #115199
03/27/07 23:10
03/27/07 23:10
Joined: Apr 2006
Posts: 136
San Francisco
T
Tor Offline
Member
Tor  Offline
Member
T

Joined: Apr 2006
Posts: 136
San Francisco
Give me a few days, I need to download visual studio 8 express edition and I'll help you out.

-T


"Towlie, you're the worst character ever." I know...
Re: Lite-C in Visual Studio [Re: Tor] #115200
03/29/07 16:42
03/29/07 16:42
Joined: Jul 2006
Posts: 783
London, UK
sheefo Offline OP
User
sheefo  Offline OP
User

Joined: Jul 2006
Posts: 783
London, UK
Thank you. I can wait

Re: Lite-C in Visual Studio [Re: sheefo] #115201
03/29/07 17:49
03/29/07 17:49
Joined: Jan 2006
Posts: 1,829
Neustadt, Germany
T
TWO Offline

Serious User
TWO  Offline

Serious User
T

Joined: Jan 2006
Posts: 1,829
Neustadt, Germany
In the project preferences, click on 'build events' and then 'prebuild events'. Now enter ' C:\ProgramFiles\LiteC\acknex.exe ".\yourscript.c" ' in the first field and save.

The only annoying things is that VS builds the project after you closed the window. There doesn't seem to be a commands to terminate the build process.

As I work with the german version the names may be different.

Edit: Ok simple solution to stop the build; Just write some crap in the next line and the compiler will stop

Last edited by Bloodline; 03/29/07 17:55.
Re: Lite-C in Visual Studio [Re: TWO] #115202
03/29/07 21:21
03/29/07 21:21
Joined: Jul 2006
Posts: 783
London, UK
sheefo Offline OP
User
sheefo  Offline OP
User

Joined: Jul 2006
Posts: 783
London, UK
Thank you so much. It works nicely.
Just one thing, it not that important though, I cannot pass commands like "-nx 500" to the engine. Any ideas? I already found a (messy) work around...

Re: Lite-C in Visual Studio [Re: sheefo] #115203
03/29/07 21:35
03/29/07 21:35
Joined: Jan 2006
Posts: 1,829
Neustadt, Germany
T
TWO Offline

Serious User
TWO  Offline

Serious User
T

Joined: Jan 2006
Posts: 1,829
Neustadt, Germany
C:\ProgramFiles\LiteC\acknex.exe ".\yourscript.c" -nx 500

Doesn't work?

Re: Lite-C in Visual Studio [Re: TWO] #115204
03/29/07 21:44
03/29/07 21:44
Joined: Jul 2006
Posts: 783
London, UK
sheefo Offline OP
User
sheefo  Offline OP
User

Joined: Jul 2006
Posts: 783
London, UK
Thanks, everything is great now

Re: Lite-C in Visual Studio [Re: Tor] #115205
04/10/07 17:11
04/10/07 17:11
Joined: Mar 2007
Posts: 75
Hamburg, Ger
Altimeter Offline
Junior Member
Altimeter  Offline
Junior Member

Joined: Mar 2007
Posts: 75
Hamburg, Ger
Wow, works great.
For the German VC++.NET 2003 owners:

Neue Projektmappe anlegen unter Datei=>Neu=>Projekt
Dort Visual C++-Projekte anklicken, dann rechts Leeres Projekt(.NET)
Dann alle .c und .h files ins Projekt aufnehmen, z.B. rechts im Projektmappenexplorer.

Danach im Hauptfenster anklicken:
Projekt
Eigenschaften von ...
Buildereignisse
Vor dem Erstellen
Dort in der ersten Zeile eingeben C:\Programme\LiteC\acknex.exe ".\yourscript.c"
Speichern nicht vergessen.

Zum Starten einfach auf Erstellen gehen und 'yourprojectname erstellen' klicken
Dann sollte LiteC auch ohne SED anspringen

Re: Lite-C in Visual Studio [Re: Altimeter] #115206
04/25/07 22:10
04/25/07 22:10
Joined: Mar 2005
Posts: 12
R
Richey Offline
Newbie
Richey  Offline
Newbie
R

Joined: Mar 2005
Posts: 12
In visual studio 8 you can call external tools which will build lite-c.

1.) Create a batch file containing the command C:\ProgramFiles\LiteC\acknex.exe %1

2.) In visual studio Select Tools | External Tools and click Add. Enter a title, browse to the batch file you created for the command and add $(ProjectDir)main.c as the arguments (where main.c is your code)

When you select tools your new tool should be in the list. This can then be mapped to a button.

Re: Lite-C in Visual Studio [Re: Richey] #115207
04/25/07 22:14
04/25/07 22:14
Joined: Mar 2005
Posts: 12
R
Richey Offline
Newbie
Richey  Offline
Newbie
R

Joined: Mar 2005
Posts: 12
You can also add color coding for lite-c commands in visual studio 8.

1.) In the directory c:\Program Files\Microsoft Visual Studio 8\Common7\IDE create a file called usertype.dat

2.) Open this file in notepad and add commands you would like color coded eg

vec_set
ENTITY
VECTOR
etc.

Restart visual studio and they should be color coded and vs will now recognise VECTORS and ENTITY names with intelisence.

Page 2 of 3 1 2 3

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