problem using custom colours

Discuss all things Battleships Forever that aren't Ships and Shipmaker - Missions, Development, etc.!

Moderators: th15, Moderators

Post Reply
hazelwooder
Commander
Commander
Posts: 106
Joined: Tue Jul 15, 2008 6:48 am

problem using custom colours

Post by hazelwooder »

when i use custom colours and i load a ship into the game an error pops up and stops me from playing, even when i press ignore it comes up again.


___________________________________________
ERROR in
action number 1
of Create Event
for object __newobject813:

In script nSec:
Error in code at line 29:
l_section[j].l_colour = global.colour[round((l_colour mod 1) * 10),argument7];

at position 73: Negative array index

___________________________________________
ERROR in
action number 1
of Alarm Event for alarm 7
for object ShipSection:

Error in code at line 14:
l_c1 = merge_color(l_cm1,c_black,l_drawglow)

at position 21: Unknown variable l_cm1
those are the errors when i try to use black as a colour
User avatar
DoubleThink
Captain
Captain
Posts: 261
Joined: Fri Jan 11, 2008 10:14 am

Post by DoubleThink »

Black doesn't work.

Next!
hazelwooder
Commander
Commander
Posts: 106
Joined: Tue Jul 15, 2008 6:48 am

Post by hazelwooder »

ok ty, are there any other colours that don't work?
Ai_512
Commander
Commander
Posts: 172
Joined: Sun May 25, 2008 5:47 am
Location: Abusing the location option.

Post by Ai_512 »

hazelwooder wrote:ok ty, are there any other colours that don't work?
Just pure black.
[img]http://i228.photobucket.com/albums/ee283/NerdofChaos/Ai541.png[/img]
[url=http://www.wyrdysm.com/phpBB2/viewtopic.php?p=61047#61047]Ai's Ships 'n Fleets[/url]
[url=http://www.wyrdysm.com/phpBB2/viewtopic.php?t=2664]My New Fleet[/url]
User avatar
DoubleThink
Captain
Captain
Posts: 261
Joined: Fri Jan 11, 2008 10:14 am

Post by DoubleThink »

The problem is zeros in the colors. You can have 'black' by doing 1 red 1 yellow and 1 blue. Anything that's black will crash it.
Post Reply