Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / iron sights Error: Runtime error 118

Author
Message
Phill Nash
13
Years of Service
User Offline
Joined: 11th Jun 2011
Location: Under your bed
Posted: 11th Jun 2011 18:45
I recently try to put an iron sights code snippet in the gun spec and when ever i do anything and error comes up and says array does not exist or array subscripts out of bounds at line 2914. please help
Shakleford
FPSC Reloaded TGC Backer
14
Years of Service
User Offline
Joined: 15th Jun 2010
Location: on the flip side
Posted: 11th Jun 2011 19:43
Could you post the gunspec. If it just happened when u used that gunspec it might be a problem with that.

I recently learned to sleep with my eyes open. ..... God am I tired
Phill Nash
13
Years of Service
User Offline
Joined: 11th Jun 2011
Location: Under your bed
Posted: 11th Jun 2011 20:38
;python weapon spec

;GUN Model File Requirements

;GUN Settings

muzzleflash = 4
muzzlesize = 35
brass = 0
smoke = 1
second = 0
damage = 20
damagetype = 1
scorchtype = 0
reloadqty = 6
iterate = 0
accuracy = 2

;GUN Visuals
textured =
effect = effectbank\BumpCubeReflectAlpha\BumpCubeReflectAlpha.fx
transparency = 2
weapontype = 1

;GUN Sounds

sound1 = fire.wav
sound2 = reload.wav
sound3 = dryfire.wav
sound4 =
sound5 =
fireloop = 0

;HUD muzzleflash position

horiz = 0
vert = 0
forward = -4
alignx = 5
aligny = -3
alignz = 20

;HUD animation frames list

keyframe ratio = 1
select = 0,9
Idle = 10,38
Move = 39,53
fire = 59,63
reload = 64,109
putaway = 110,119

;HUD sound frames list

soundframes = 3
sframe0 = 54,1
sframe1 = 64,2
;sframe2 = 88,2

runacc=13
recoily=30
recoilyreturn=50
gunlagspeed=10
gunlagxmax=15
gunlagymax=15
simplezoom=2
runy=-1
zoomrecoily=20
zoomrecoilyreturn=75
zoomwalkspeed=1
zoomturnspeed=2
simplezoomx=-4.205
simplezoomy=1.43
simplezoomspeed=3
simplezoomacc=5
simplezoommod=4
Phill Nash
13
Years of Service
User Offline
Joined: 11th Jun 2011
Location: Under your bed
Posted: 11th Jun 2011 20:39
i uninstalled it and re installed it so now when i insert the snippet nothing happens its like i didnt do anything to it
Phill Nash
13
Years of Service
User Offline
Joined: 11th Jun 2011
Location: Under your bed
Posted: 11th Jun 2011 21:56
;python weapon spec

;GUN Model File Requirements

;GUN Settings

muzzleflash = 4
muzzlesize = 35
brass = 0
smoke = 1
second = 0
damage = 20
damagetype = 1
scorchtype = 0
reloadqty = 6
iterate = 0
accuracy = 2

;GUN Visuals
textured =
effect = effectbank\BumpCubeReflectAlpha\BumpCubeReflectAlpha.fx
transparency = 2
weapontype = 1

;GUN Sounds

sound1 = fire.wav
sound2 = reload.wav
sound3 = dryfire.wav
sound4 =
sound5 =
fireloop = 0

;HUD muzzleflash position

horiz = 0
vert = 0
forward = -4
alignx = 5
aligny = -3
alignz = 20

;HUD animation frames list

keyframe ratio = 1
select = 0,9
Idle = 10,38
Move = 39,53
fire = 59,63
reload = 64,109
putaway = 110,119

;HUD sound frames list

soundframes = 3
sframe0 = 54,1
sframe1 = 64,2
;sframe2 = 88,2

runacc=13
recoily=30
recoilyreturn=50
gunlagspeed=10
gunlagxmax=15
gunlagymax=15
simplezoom=2
runy=-1
zoomrecoily=20
zoomrecoilyreturn=75
zoomwalkspeed=1
zoomturnspeed=2
simplezoomx=-4.205
simplezoomy=1.43
simplezoomspeed=3
simplezoomacc=5
simplezoommod=4

if Jesus was god's only son, and we are all gods children, Doesn't that mean..?
Phill Nash
13
Years of Service
User Offline
Joined: 11th Jun 2011
Location: Under your bed
Posted: 11th Jun 2011 23:18
i think its not the script but airmod, i replace the FPSC-game.exe with airmods then i tryed fpsc and the error came up

if Jesus was god's only son, and we are all gods children, Doesn't that mean..?
Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 12th Jun 2011 05:16 Edited at: 12th Jun 2011 05:18
Nevermind, I was mistaken...sorry.

Shakleford
FPSC Reloaded TGC Backer
14
Years of Service
User Offline
Joined: 15th Jun 2010
Location: on the flip side
Posted: 12th Jun 2011 11:32
Well I just tried it V118 Beta 17 and the left arm glitches back and forth on the screen. It could because I tried it in a different version but V1.18 has airmod. So maybe the HUD glitch is the problem. This is just a guess tho Im not sure what the problem is.

I recently learned to sleep with my eyes open. ..... God am I tired

Login to post a reply

Server time is: 2024-11-24 08:35:01
Your offset time is: 2024-11-24 08:35:01