Location: JBPLAY \ Meteor 2 \ Editing \ Error messages Back to Threads |
VR_Rat
![]() Joined: 20 January 2006 Posts: 396 |
28 January 2006 20:56 (UK time)
Dose someone have a list of what the error mesages mean? I mean the 'Error No. 1' errors for the scripting. You need to login to create posts in this thread. |
arezey
![]() Joined: 16 June 2005 Posts: 1599 |
29 January 2006 07:16 (UK time)
I don't know the error number, but I still can help if you could descript the error, like giving the error message in overall. You need to login to create posts in this thread. |
VR_Rat
![]() Joined: 20 January 2006 Posts: 396 |
29 January 2006 16:25 (UK time)
I'm asking for the error messages so I don't have to rely on others to debug my script. Anyway, here is the script that isn't working. Edited: 29 January 2006 16:40 You need to login to create posts in this thread. |
mike323
Posts: 745 |
29 January 2006 18:32 (UK time)
Your error is bolded. #title "Port Mayhem" #author "Vir_Rat" #include meteor2 export OnMapStart; export ware1north; export ware1south; export ware2north; export ware2south; void OnMapStart() { SC_SetObjectIndestructible(0,1); SC_SetObjectIndestructible(1,1); SC_SetObjectIndestructible(2,1); SC_SetObjectIndestructible(3,1); SC_SetObjectIndestructible(4,1); SC_SetObjectIndestructible(5,1); SC_SetObjectIndestructible(6,1); SC_SetObjectIndestructible(7,1); SC_SetObjectIndestructible(52,1); } void ware1north() { SC_GameMessage("Warehouse 101, North entrance" ![]() SC_SetSectorHidden(14, 1); } void ware1south() <b>{</b> SC_GameMessage("Warehouse 101, South entrance" ![]() SC_SetSectorHidden(13, 1); } void ware2north() { SC_GameMessage("Warehouse 102, North entrance" ![]() SC_SetSectorHidden(19, 1); } void ware2south() { SC_GameMessage("Warehouse 102, South entrance" ![]() SC_SetSectorHidden(20, 1); } You need to login to create posts in this thread. |
mike323
Posts: 745 |
29 January 2006 18:34 (UK time)
Keep those brackets organized! btw, the error numbers really don't help me much, because usually it will say something else like "Pa'rse error" which means the syntax isn't correct (like you mistyped something, or needed a bracket). Edited: 29 January 2006 18:35 You need to login to create posts in this thread. |
VR_Rat
![]() Joined: 20 January 2006 Posts: 396 |
29 January 2006 19:46 (UK time)
Those brackets are really begining to annoy me. It's always the thing that I mess up on. You need to login to create posts in this thread. |
James Bunting
Posts: 1308 |
01 February 2006 23:06 (UK time)
Yeah I hear you there. The joys of C coding and those silly typo errors that take all day to fix! The error messages are provided by the SeeR compiler and are not Meteor specific/controlled. You need to login to create posts in this thread. |
VR_Rat
![]() Joined: 20 January 2006 Posts: 396 |
02 February 2006 20:39 (UK time)
Can't you fix it so that it shows specificly what is wrong like telling if a bracket is missing? You need to login to create posts in this thread. |
James Bunting
Posts: 1308 |
03 February 2006 01:07 (UK time)
Afraid not as I have no control over the script compiler because it is an add-on component. It may (perhaps) comfort you to know that the errors are pretty much the same as many simply standard C compilers with the "parse error at line ???" syntax. Just remember that "parse" = "typo" and you are made. My best suggestion is to get a text editor with C syntax highlighting (different colours), the only problem is that many editors determine the file type (and therefore colour codes) for the file extension (.sc is no a standard c file extension). I am sure there is a good freebie text editor with c highlighting that can be made to work with ".sc" files? Somebody should look for one, get on it people (I am too busy to hunt around right now)! James You need to login to create posts in this thread. |
VR_Rat
![]() Joined: 20 January 2006 Posts: 396 |
03 February 2006 01:20 (UK time)
I'm no good for hunting for stuff like that and I barely know any programing due to inability to stick with the 700+ page maunals. You need to login to create posts in this thread. |
arezey
![]() Joined: 16 June 2005 Posts: 1599 |
04 February 2006 15:13 (UK time)
I have Notepad 2 what puts them to different colours. It has Web Source Code, Config Files and other syntaxes too included. You can download the Notepad 2 from <a href="http://www.flos-freeware.ch/notepad2.html">http://www.flos-freeware.ch/notepad2.html</a>. I have also edited it so, that it counts *.sc as C/C++ Source Code. You can edit them by clicking Ctrl + F12. Edited: 04 February 2006 15:14 You need to login to create posts in this thread. |
VR_Rat
![]() Joined: 20 January 2006 Posts: 396 |
04 February 2006 19:43 (UK time)
Can you give me more specific instuction on how to change it? I just got that notepad 2 thing. You need to login to create posts in this thread. |
James Bunting
Posts: 1308 |
05 February 2006 01:18 (UK time)
Hey Akeks, any chance of uploading a screenie of the .sc syntax highlighting? You need to login to create posts in this thread. |
VR_Rat
![]() Joined: 20 January 2006 Posts: 396 |
05 February 2006 18:39 (UK time)
I figured out how to show the synta ![]() You need to login to create posts in this thread. |
arezey
![]() Joined: 16 June 2005 Posts: 1599 |
05 February 2006 18:50 (UK time)
Sure, <a href="http://kotisivu.mtv3.fi/aleksanteri2005/notepad2help/setting.htm">here</a>. You need to login to create posts in this thread. |
VR_Rat
![]() Joined: 20 January 2006 Posts: 396 |
05 February 2006 20:37 (UK time)
yeah that's better than my description. You need to login to create posts in this thread. |
|
Forums system (C) 1999-2023 by James Bunting.
Terms of Use