Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (SBGuy), 652 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Visual Studio 2005 - C-Script Syntax Highlighting? #73295
05/05/06 17:42
05/05/06 17:42
Joined: Aug 2002
Posts: 681
Massachusetts, USA
Ichiro Offline OP
User
Ichiro  Offline OP
User

Joined: Aug 2002
Posts: 681
Massachusetts, USA
Has anyone been able to get C-Script syntax highlighting working for VS2005? I posted the question last month in Scripting, but either nobody there knew, or they were safeguarding that precious secret.


Dejobaan Games - Bringing you quality video games for over 75 years.
Re: Visual Studio 2005 - C-Script Syntax Highlighting? [Re: Ichiro] #73296
08/11/06 16:38
08/11/06 16:38
Joined: Aug 2002
Posts: 681
Massachusetts, USA
Ichiro Offline OP
User
Ichiro  Offline OP
User

Joined: Aug 2002
Posts: 681
Massachusetts, USA
Hokay, it's now mid-August -- surely, by now, someone else has adopted VS2005 and gotten the syntax highlighting working? Anyone?

Bueller?

Bueller?

Shucks. :)

In lieu of that -- does anyone know how the A6 defined the keywords for VS6? I figure it was something other than a usertype.dat file.


Dejobaan Games - Bringing you quality video games for over 75 years.
Re: Visual Studio 2005 - C-Script Syntax Highlight [Re: Ichiro] #73297
08/13/06 03:55
08/13/06 03:55
Joined: Aug 2003
Posts: 7,439
Red Dwarf
Michael_Schwarz Offline
Senior Expert
Michael_Schwarz  Offline
Senior Expert

Joined: Aug 2003
Posts: 7,439
Red Dwarf
i think it would be very difficult, you'd have to "explain" VS that there are no more classes, namespaces, private/public/etc, just FUnctions... but I think, if I get some time in between all the stuff on my To-DO list, ill take a look at it.

Last edited by Michael_Schwarz; 08/13/06 03:56.

"Sometimes JCL reminds me of Notch, but more competent" ~ Kiyaku
Re: Visual Studio 2005 - C-Script Syntax Highlighting? [Re: Ichiro] #73298
09/06/06 07:31
09/06/06 07:31
Joined: Apr 2006
Posts: 1,551
Netherlands
D3D Offline
Serious User
D3D  Offline
Serious User

Joined: Apr 2006
Posts: 1,551
Netherlands
Old_Bill has posted a syntax highlight for visual studio on the AUM Resource page, however both the user.dat and .reg must be updated. I don't know if it works anymore. Guess try it when I go home because I don't like SED crashing every time, with VC++ 2005 maybe it works better.

Dusty


smile
Visual Studio 2005 - Syntax Highlighting (Hooray!) [Re: Ichiro] #73299
10/03/06 02:54
10/03/06 02:54
Joined: Aug 2002
Posts: 681
Massachusetts, USA
Ichiro Offline OP
User
Ichiro  Offline OP
User

Joined: Aug 2002
Posts: 681
Massachusetts, USA
I didn't notice that anyone had posted replies; thanks. I looked further into this, and finally kicked VS2005 around enough to get it working. As Dusty said, it was a combination of registry key and usertype.dat. The steps are as follows:

1. Add a registry key:
Key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\Languages\File Extensions\.wdl
Value: "{B2F072B0-ABC1-11D0-9D62-00C04FD9DFD9}"

2. Add a blank text file called usertype.dat to "C:\Program Files\Microsoft Visual Studio 8\Common7\IDE".

3. Populate usertype.dat with the latest C-Script keywords (one per line):
Quote:

function
starter
action
var

(etc.)




4. Profit!

YMMV. Use at your own risk. :)


Dejobaan Games - Bringing you quality video games for over 75 years.
Re: Visual Studio 2005 - Syntax Highlighting (Hooray!) [Re: Ichiro] #73300
10/03/06 07:15
10/03/06 07:15
Joined: Apr 2006
Posts: 1,551
Netherlands
D3D Offline
Serious User
D3D  Offline
Serious User

Joined: Apr 2006
Posts: 1,551
Netherlands
@ Ichiro:

How kind of you for sharing, this was just what I needed. One question though, Where do I find all current keywords? I tried keywords.db and found a few inside. Are these all? Looks like i'm missing some besides 'starter' for instance:

action
bind
bmap
break
breakpoint
continue
define
else
endif
entity
font
for
function
if
ifdef
ifelse
ifndef
include
level
main
or
panel
path
resource
savedir
set
skill
sound
string
text
var
var_info
var_nsave
view
while

All the best,

Dusty


smile
Re: Visual Studio 2005 - Syntax Highlighting (Hooray!) [Re: D3D] #73301
10/03/06 19:37
10/03/06 19:37
Joined: Aug 2002
Posts: 681
Massachusetts, USA
Ichiro Offline OP
User
Ichiro  Offline OP
User

Joined: Aug 2002
Posts: 681
Massachusetts, USA
I'm pretty sure that this list is incomplete, but this is mostly from the old usertype.dat from VS6:

Quote:

function
starter
action
var
var_info
var_nsave
string
entity*
function*
string*
panel*
bmap*
action*
=
random
randomize
log
exp
pow
sqrt
sign
abs
int
frc
min
max
ang
sin
cos
tan
asin
acos
atan
fsin
fcos
ftan
fasin
facos
fatan
vec_set
vec_add
vec_sub
vec_scale
vec_dot
vec_dist
vec_length
vec_normalize
vec_inverse
vec_diff
vec_rotate
ang_add
vec_to_angle
vec_to_screen
vec_for_screen
rel_to_screen
rel_for_screen
str_cpy
str_cat
str_cmp
str_cmpi
str_cmpni
str_len
str_clip
str_trunc
str_stri
str_to_num
str_for_num
str_to_asc
str_for_asc
file_cpy
file_rename
file_delete
file_open_read
file_open_game
file_open_write
file_open_append
file_close
file_var_write
file_var_read
file_str_write
file_str_read
file_chr_read
file_asc_write
file_asc_read
if
else
while
break
continue
goto
return
handle
ptr_for_handle
proc_kill
proc_late
wait
sleep
ent_create
ent_createlocal
ent_remove
ent_morph
ent_purge
ent_preload
ent_frame
ent_cycle
ent_alphaset
ent_blend
ent_frames
ent_skins
ent_next
ent_vertices
str_for_entfile
str_for_entname
ptr_for_name
vec_for_vertex
vec_for_normal
vec_for_mesh
vec_to_mesh
vec_for_min
vec_for_max
effect
effect_local
ent_move
content
trace
scan_entity
scan_path
ent_path
ent_nextpath
ent_waypoint
ent_nextpoint
ent_prevpoint
media_play
media_loop
media_pause
media_start
media_stop
media_playing
media_tune
snd_play
snd_loop
ent_playsound
ent_playloop
snd_stop
snd_tune
snd_playing
play_cd
exec
inport
outport
select
unselect
and_select
or_select
game_save
game_load
level_load
video_switch
exit
inkey
key_pressed
key_for_str
str_for_key
key_set
send_skill
send_string_to
send_string
send_var
send_var_to
session_connect
proc_local
proc_client
bmap_for_screen
bamp_width
bmap_height
bmap_purge
bmap_preload
bmap_for_entity
dllfunction
dll_open
dll_close
execute
beep
breakpoint
diag
bmap
font
sound
entity
sky
x
y
z
pan
tilt
roll
client
local
native
nosend
nosend_origin
nosend_angles
nosend_scale
nosend_frame
nosend_skin
nosend_flags
nosend_ambient
nosend_alpha
nosend_light
nosend_color
nosend_uv
nosend_sound
scale_x
scale_y
scale_z
frame
next_frame
u
v
skin
ambient
albedo
lightrange
red
green
blue
light
visible
invisible
alpha
overlay
flare
bright
metal
nofog
nofilter
unlit
shadow
oriented
facing
decal
near
-narrow
-fat
narow
fat
min_x
min_y
min_z
max_x
max_y
max_z
passable
push
trigger_range
event
event_block
event_entity
event_impact
event_stuck
event_push
event_click
event_rightclick
event_touch
event_release
event_scan
event_detect
event_shoot
event_sonar
event_disconnect
event_receive
skill1
skill2
skill3
skill4
skill5
skill6
skill7
skill8
skill9
skill10
skill11
skill12
skill13
skill14
skill15
skill16
skill17
skill18
skill19
skill20
skill21
skill22
skill23
skill24
skill25
skill26
skill27
skill28
skill29
skill30
skill31
skill32
skill33
skill34
skill35
skill36
skill37
skill38
skill39
skill40
skill41
skill42
skill43
skill44
skill45
skill46
skill47
skill48
flag1
flag2
flag3
flag4
flag5
flag6
flag7
flag8
type
layer
view
dome
scene
bmap
speed_u
speed_v
lifespan
vel_x
vel_y
vel_z
gravity
size
bmap
move
beam
streak
function
skill_a
skill_b
skill_c
skill_d
skill_x
skill_y
skill_z
panel
.bamp
.layer
.pos_x
.pos_y
.alpha
visible
overlay
transparent
refresh
d3d
button
hslider
vslider
hbar
vbar
window
digits
mouse_map
on_click
text
layer
pos_x
pos_y
size_y
offset_y
strings
string
font
char_x
char_y
dataview
viewpos
alpha
center_x
center_y
condensed
narrow
transparent
visible
view
layer
pos_x
pos_y
size_x
size_y
x
y
z
pan
tilt
roll
.arc
spect
offset_x
offset_y
ambient
fog
fog_start
fog_end
alpha
genius
portal
visible
audible
transparent
portalclip
portalinvisible
noshadow
noparticle
skyvisible
fps_min
fps_max
fps_lock
time
time_factor
total_ticks
total_frames
sys_seconds
sys_minutes
sys_hours
sys_day
sys_month
sys_year
sys_dow
sys_doy
app_name
edition
version
num_visents
num_visentpolys
num_vismappolys
num_particles
num_entities
num_actions
logo
pos_resolution
max_loops
gamma
floor_range
shadow_offset
d3d_shadowdepth
d3d_alphadepth
d3d_anisotrop
mip_flat
mip_shaded
d3d_mipmapping
d3d_near
d3d_lightres
d3d_entsort
d3d_lines
d3d_nobsp
detail_size
clip_particles
clip_factor
clip_range
freeze_mode
max_particles
max_entities
level_name
sun_angles.pan
sun_angles.tilt
sun_pos
sun_light
bg_color
fog_color
d3d_fogcolor1
d3d_fogcolor2
d3d_fogcolor3
d3d_fogcolor4
sky_curve
sky_clip
turb_range
turb_speed
media_layer
media_handle
num_mediastreams
sound_vol
midi_vol
cdaudio_vol
cd_track
video_mode
video_depth
viedo_screen
screen_size
render_inflate
d3d_lockable
d3d_tripplebuffer
d3d_vbuffersize
d3d_mode
d3d_texfree
d3d_texskins
d3d_texsurfs
d3d_texmaps
d3d_texbmaps
d3d_texlimit
tex_share
d3d_monochrome
session_name
server_name
server_ip
connection
dplay_smooth
dplay_unreliable
dplay_latency
dplay_bps
dplay_bpspeak
dplay_entrate
dplay_pingrate
dplay_clienttimeout
rebuf_cycles
rebuf_size
mouse_mode
mouse_pointer
mouse_pos
mouse_map
mouse_spot
mickey
pointer
mouse_range
mouse_moving
mouse_calm
mouse_time
mouse_left
mouse_middle
mouse_right
mouse_force
mouse_ent
enable_mouse
num_joysticks
joy_raw
joy_rot
joy2_raw
joy2_rot
joy_force
joy_1
joy_2
joy_3
joy_4
joy_5
joy_6
joy_7
joy_8
joy_9
joy_10
enable_joystick
key_f1
key_f2
key_f3
key_f4
key_f5
key_f6
key_f7
key_f8
key_f9
key_f10
key_f11
key_f12
key_esc
key_tab
key_shift
key_ctrl
key_alt
key_space
key_bksp
key_cuu
key_cud
key_cur
key_cul
key_pgup
key_pgdn
key_home
key_end
key_ins
key_del
key_pause
key_car
key_cal
key_enter
key_0
key_1
key_2
key_3
key_4
key_5
key_6
key_7
key_8
key_9
key_a
key_b
key_c
key_d
key_e
key_f
key_g
key_h
key_i
key_j
key_k
key_l
key_m
key_n
key_o
key_p
key_q
key_r
key_s
key_t
key_u
key_v
key_w
key_x
key_y
key_z
key_force
shift_sense
key_sense
key_any
key_lastpressed
enable_key
render_entities
render_sky
render_world
on_server
on_client
on_anykey
on_f1
on_f2
on_f3
on_f4
on_f5
on_f6
on_f7
on_f8
on_f9
on_f10
on_11
on_12
on_esc
on_tab
on_shift
on_ctrl
on_alt
on_space
on_bksp
on_cuu
on_cud
on_cur
on_cul
on_pgup
on_pgdn
on_home
on_end
on_ins
on_del
on_pause
on_car
on_cal
on_enter
on_0
on_1
on_2
on_3
on_4
on_5
on_6
on_7
on_8
on_9
on_a
on_b
on_c
on_d
on_e
on_f
on_g
on_h
on_i
on_j
on_k
on_l
on_m
on_n
on_o
on_p
on_q
on_r
on_s
on_t
on_u
on_v
on_w
on_x
on_y
on_z
on_joy1_1
on_joy1_2
on_joy1_3
on_joy1_4
on_joy1_5
on_joy1_6
on_joy1_7
on_joy1_8
on_joy1_9
on_joy1_10
on_joy2_1
on_joy2_2
on_joy2_3
on_joy2_4
on_joy2_5
on_joy2_6
on_joy2_7
on_joy2_8
on_joy2_9
on_joy2_10
on_click
on_mouse_left
on_mouse_middle
on_mouse_right
on_mouse_stop
on_close
nullvector
pi
result
on_passable
in_passable
in_solid
event_type
vglide
bounce
normal
target
you
your
my
me
inkey_active
warn_level
watched
include
bind
level
savedir
path
resource
print
define
undef
ifdef
ifndef
ifelse
endif
develop
server
client
caps_color
caps_flare
caps_shadow
database
dataview
winstart
winrun
winend
title
size
mode
bg_color
set_font
text
text_stdout
frame
bg_pattern
pattern
picture
progress
ph_selectgroup
ph_setgravity
ph_setcorrections
phent_addcentralforce
phent_addforceglobal
phent_addforcelocal
phent_addtorqueglobal
phent_addtorquelocal
phent_enable
phent_getbounds
phent_getvelocity
phent_makelocal
phent_setdamping
phent_setelasticity
phent_sefriction
phent_setgroup
phent_setmass
phent_settype
phcon_add
phcon_getposition
phcon_remove
phcon_setmotor
phcon_setparams1
phcon_setparams2
PH_RIGID
PH_BOX
PH_SPHERE
PH_CYLINDER
PH_POLY
PH_BALL
PH_HINGE
PH_SLIDER
PH_WHEEL
On
Off
on
off
move_mode
CAPS_PHYSICS
d3d_transform
d3d_autotransparency
d3d_pointlightfalloff
d3d_spotlightfalloff
d3d_spotlightcone
event_friction
max_ph_entites
nexus
num_vistriangles
on_d3d_lost
on_d3d_reset
shadow_threshold
shadow_range
tex_cycles
time_physics
time_smooth
total_secs
view.clip_near
view.clip_far
view.fog_start
view.fog_end
text.red
text.green
text.blue
entity.ENABLE_FRICTION
entity.spotlight
entity.nosend_attach
entity.untouchable
accelerate
bmap_lock
bmap_unlock
breakpoint_on
cd_play
cd_pause
cd_start
cd_track
clamp
cycle
c_content
c_move
c_rotate
c_trace
digits_set
draw_text
draw_textmode
ent_animate
ent_bones
ent_bonereset
ent_bonerotate
ent_bonescale
ent_morphskin
ent_sendnow
phent_setmaxspeed
pixel_for_bmap
pixel_for_vec
pixel_to_bmap
pixel_to_vec
txt_setinvisible
txt_setvisible
vec_accelerate
vec_lerp
vector
NULL
null
client
local
native
nosend
nosend_attach
nosend_origin
nosend_angles
nosend_scale
nosend_frame
nosend_skin
nosend_flags
nosend_ambient
nosend_alpha
nosend_light
nosend_color
nosend_uv
nosend_sound
ambient_blue
ambient_green
ambient_red
diffuse_blue
diffuse_green
diffuse_red
emissive_blue
emissive_green
emissive_red
specular_blue
specular_green
specular_red
power
ent_createlocal
ent_skins
fixed
float
floatr
my_matrix
matView
matViewInv
matProj
matWorld
mat_identity
mat_scale
mat_set
mat_inverse
mat_transpose
mat_multiply
ent_fixnormals
bmap_to_cubemap
mip_sprites
bmap_to_mipmap
polygon
cube
shadow_mode
vecSkill1
vecSkill5
vecSkill41
vecTime
vecFog
vecLight
vecSunDir
vecAmbient
VecDiffuse
vecSpecular
vecEmissive
mtlSkin1
mtlSkin2
mtlSkin3
mtlSkin4
entSkin1
entSkin2
entSkin3
entSkin4
material
parent
map_subents
shadow
outline
bmap_to_normals
effect_load
bmap_to_uv
livid_magic_pony_donkey
skin1
skin2
skin3
skin4
scale1
scale2
bmap_width




I figured I'd fill in new ones as they came. (And I'm just now noticing that there are duplicates.) If anyone has a more up-to-date list, feel free to share. :)


Dejobaan Games - Bringing you quality video games for over 75 years.
Re: Visual Studio 2005 - Syntax Highlighting (Hooray!) [Re: Ichiro] #73302
10/04/06 10:11
10/04/06 10:11
Joined: Apr 2006
Posts: 1,551
Netherlands
D3D Offline
Serious User
D3D  Offline
Serious User

Joined: Apr 2006
Posts: 1,551
Netherlands
Thanks I did the same yesterday. Only thing is that I don't understand why there are so less entries inside the command.db in my GameStudio directory. Maybe I need to reinstall or they are inside another file.

Dusty


smile
Re: Visual Studio 2005 - Syntax Highlighting (Hooray!) [Re: D3D] #73303
10/04/06 13:21
10/04/06 13:21
Joined: Aug 2002
Posts: 681
Massachusetts, USA
Ichiro Offline OP
User
Ichiro  Offline OP
User

Joined: Aug 2002
Posts: 681
Massachusetts, USA
The above list includes both keywords (if, while) and identifiers (skill7, pi). I'm unfamiliar with commands.db, but perhaps it only includes one of the two?


Dejobaan Games - Bringing you quality video games for over 75 years.
Re: Visual Studio 2005 - Syntax Highlighting (Hoor [Re: Ichiro] #73304
10/04/06 18:29
10/04/06 18:29
Joined: Jun 2004
Posts: 2,234
Wisconsin USA
FoxHound Offline
Expert
FoxHound  Offline
Expert

Joined: Jun 2004
Posts: 2,234
Wisconsin USA
skills are done like this now

skills[100];

An array instead of 100 different vars. Much easier to use in code in my opinion.


---------------------
There is no signature here.


QUIT LOOKING FOR ONE!
Page 1 of 2 1 2

Moderated by  TWO 

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