Matrix Games Forums

To End All Wars Releasing on Steam! Slitherine is recruiting: Programmers requiredPandora: Eclipse of Nashira gets release dateCommunity impressions of To End All WarsAgeod's To End All Wars is now availableTo End All Wars is now available!Deal of the Week: Field of GloryTo End All Wars: Video, AAR and Interview!Ageod's To End All Wars: Video, AAR and Interview!To End All Wars: Artillery
Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Watch out for commas...

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> Distant Worlds Series >> Design and Modding >> Watch out for commas... Page: [1]
Login
Message << Older Topic   Newer Topic >>
Watch out for commas... - 10/18/2012 5:55:39 PM   
tjhkkr


Posts: 1836
Joined: 6/3/2010
Status: offline
I was looking at IGard's Character files and saw how absolutely forgiving Elliot made the game to our files...
It takes numbers out of sequence, multiple numbers in the timing scheme... kudos to Elliot...

I found two commas missing and that is why my game blews.
That qualifies me as a DEU Dumb End User...

Testing of the Star Wars mods is now back at full speed...

_____________________________

Remember that the evil which is now in the world will become yet more powerful, and that it is not evil which conquers evil, but only love -- Olga Romanov.
Post #: 1
RE: Watch out for commas... - 10/18/2012 6:33:04 PM   
Shark7


Posts: 7135
Joined: 7/24/2007
From: The Big Nowhere
Status: offline
Hmm, so basically it was a OIE (Operator Interface Error)?

_____________________________

Distant Worlds Fan

'When in doubt...attack!'

(in reply to tjhkkr)
Post #: 2
RE: Watch out for commas... - 10/18/2012 8:39:59 PM   
tjhkkr


Posts: 1836
Joined: 6/3/2010
Status: offline
I would have never found it had I not had IGard's excellent example...
OIE... yeah, that firs...

_____________________________

Remember that the evil which is now in the world will become yet more powerful, and that it is not evil which conquers evil, but only love -- Olga Romanov.

(in reply to Shark7)
Post #: 3
RE: Watch out for commas... - 10/22/2012 5:36:27 AM   
Shark7


Posts: 7135
Joined: 7/24/2007
From: The Big Nowhere
Status: offline
Seems I am the latest victim of the dreaded 'syntax error'. Tried adding some races to my game... well here I go on an error hunt.

Luckily, the game will start without the character files, so tracking down the exact file will be easier...add each one, one at a time and when the game goes boom, start looking.

Does anyone have some Tylenol? I'm gonna have a migraine by the time this is done, lol.

_____________________________

Distant Worlds Fan

'When in doubt...attack!'

(in reply to tjhkkr)
Post #: 4
RE: Watch out for commas... - 10/22/2012 5:50:56 AM   
ehsumrell1


Posts: 2092
Joined: 8/17/2010
From: The Briar Patch Nebula
Status: online

quote:

ORIGINAL: Shark7

Does anyone have some Tylenol? I'm gonna have a migraine by the time this is done, lol.


Here you are Shark....JUST FOR YOU!!!!






Attachment (1)

_____________________________

Shields are useless in "The Briar Patch"...

(in reply to Shark7)
Post #: 5
RE: Watch out for commas... - 10/22/2012 7:39:19 AM   
Shark7


Posts: 7135
Joined: 7/24/2007
From: The Big Nowhere
Status: offline

quote:

ORIGINAL: ehsumrell1


quote:

ORIGINAL: Shark7

Does anyone have some Tylenol? I'm gonna have a migraine by the time this is done, lol.


Here you are Shark....JUST FOR YOU!!!!







Galaxy Strength...I sure hope its enough...cause I think my migraine is gonna be universe size by the time I'm done.

Just remember DON'T PANIC!. Wonder how many of yall know what I'm referring to with that?

So far every error I have found (and there have been a ton of them) has been either a comma in the wrong place, or a period instead of a comma. On a side note, even if you get the name of the image wrong, the game will still work.

I've had to resort to opening the character file, deleting all but a section then saving and trying. If that section is good, I redo the whole thing, leaving the good section and adding another. You can look at the file all day long and not see it without doing something to try and isolate the portion the error is in.

It would be really nice if the debugging (that error reports when the theme won't load) which tells you that you have an error in line X was usable in this situation.

_____________________________

Distant Worlds Fan

'When in doubt...attack!'

(in reply to ehsumrell1)
Post #: 6
RE: Watch out for commas... - 10/22/2012 7:46:46 AM   
feelotraveller


Posts: 1035
Joined: 9/12/2011
Status: offline
I lost the better part of a day looking... looking... looking.  I checked and checked and swore ten times over that there was no typo and it should work. 

Late in the day I found it... a missing comma.   

Stupid machine, and I don't mean the computer.

Hope you find it sooner. 

(in reply to Shark7)
Post #: 7
RE: Watch out for commas... - 10/22/2012 10:16:58 PM   
tjhkkr


Posts: 1836
Joined: 6/3/2010
Status: offline
Yes, I found them all.

The best way I have found is to use a cheap text editor with a tab feature... wordpad works real well.
AND I do this now...

000, -50, 005, 010

You get the idea... it helps to keep nice straight columns and it makes locating the errors MUCH easier.
The files that blew up were all ones not well columned...

Back on course and on target...

_____________________________

Remember that the evil which is now in the world will become yet more powerful, and that it is not evil which conquers evil, but only love -- Olga Romanov.

(in reply to feelotraveller)
Post #: 8
RE: Watch out for commas... - 10/23/2012 1:17:04 AM   
ehsumrell1


Posts: 2092
Joined: 8/17/2010
From: The Briar Patch Nebula
Status: online
Also, one trick I use in my modding of the character files I use, I separate the character
entries by type as well. For Example:

'# of Characters: 10

' Leaders

0, Tralassi, 1, Tralassi_Lipid_Leader.png, Lipid, 1, 5, 2, 8, 6, 10, 7, 12, 5, 8, 19
1, Maanaga, 1, Maanaga_Lipid_Leader.png, Lipid, 2, 11, 3, 16, 6, 12, 10, 17, 11, 18, 21

' Ambassadors

1, Tralmor, 2, Tralmor_Lipid_Ambassador.png, Lipid, 1, 12, 3, 11, 4, 18, 18, 9, 2, 7, 17
1, Gorthrit, 2, Gorthrit_Lipid_Ambassador.png, Lipid, 1, 16, 3, 22, 4, 8, 17, 7, 7, 9, 23

' Governors

1, Onesh, 3, Onesh_Lipid_Governor.png, Lipid, 2, 13, 3, 9, 6, 18, 8, 17, 11, 15, 21
1, Tuzbar, 3, Tuzbar_Lipid_Governor.png, Lipid, 2, 11, 4, 16, 7, 18, 9, 11, 23, 26, 0

' Admirals

0, Nema, 4, Nema_Lipid_Admiral.png, Lipid, 23, -5, 29, 4, 30, 26, 31, 23, 49, 51, 59
1, Ucknar, 4, Ucknar_Lipid_Admiral.png, Lipid, 24, -6, 32, 20, 34, 15, 38, 11, 50, 53, 60

' Troop Generals

0, Retfan, 5, Retfan_Lipid_General.png, Lipid, 9, 18, 24, -5, 27, -9, 41, 22, 65, 67, 72
1, Ralassi, 5, Ralassi_Lipid_General.png, Lipid, 27, -4, 28, -3, 40, 12, 41, 27, 59, 66, 67

This way, by keeping count per type I have no problem matching the correct number of characters with
their image files. In addition, keeping the columns neat makes it easy to verify the correct placement
of commas for each row as well. Hope this helps!

_____________________________

Shields are useless in "The Briar Patch"...

(in reply to tjhkkr)
Post #: 9
RE: Watch out for commas... - 10/23/2012 3:24:23 AM   
Shark7


Posts: 7135
Joined: 7/24/2007
From: The Big Nowhere
Status: offline

quote:

ORIGINAL: ehsumrell1

Also, one trick I use in my modding of the character files I use, I separate the character
entries by type as well. For Example:

'# of Characters: 10

' Leaders

0, Tralassi, 1, Tralassi_Lipid_Leader.png, Lipid, 1, 5, 2, 8, 6, 10, 7, 12, 5, 8, 19
1, Maanaga, 1, Maanaga_Lipid_Leader.png, Lipid, 2, 11, 3, 16, 6, 12, 10, 17, 11, 18, 21

' Ambassadors

1, Tralmor, 2, Tralmor_Lipid_Ambassador.png, Lipid, 1, 12, 3, 11, 4, 18, 18, 9, 2, 7, 17
1, Gorthrit, 2, Gorthrit_Lipid_Ambassador.png, Lipid, 1, 16, 3, 22, 4, 8, 17, 7, 7, 9, 23

' Governors

1, Onesh, 3, Onesh_Lipid_Governor.png, Lipid, 2, 13, 3, 9, 6, 18, 8, 17, 11, 15, 21
1, Tuzbar, 3, Tuzbar_Lipid_Governor.png, Lipid, 2, 11, 4, 16, 7, 18, 9, 11, 23, 26, 0

' Admirals

0, Nema, 4, Nema_Lipid_Admiral.png, Lipid, 23, -5, 29, 4, 30, 26, 31, 23, 49, 51, 59
1, Ucknar, 4, Ucknar_Lipid_Admiral.png, Lipid, 24, -6, 32, 20, 34, 15, 38, 11, 50, 53, 60

' Troop Generals

0, Retfan, 5, Retfan_Lipid_General.png, Lipid, 9, 18, 24, -5, 27, -9, 41, 22, 65, 67, 72
1, Ralassi, 5, Ralassi_Lipid_General.png, Lipid, 27, -4, 28, -3, 40, 12, 41, 27, 59, 66, 67

This way, by keeping count per type I have no problem matching the correct number of characters with
their image files. In addition, keeping the columns neat makes it easy to verify the correct placement
of commas for each row as well. Hope this helps!


That was the system I was using. Still it all runs together (not helped by my poor eyesight).

_____________________________

Distant Worlds Fan

'When in doubt...attack!'

(in reply to ehsumrell1)
Post #: 10
RE: Watch out for commas... - 10/23/2012 12:45:39 PM   
ehsumrell1


Posts: 2092
Joined: 8/17/2010
From: The Briar Patch Nebula
Status: online
Actually Shark, the trick is to have some separation between the grouping (When trying to demonstrate here
it doesn't work). By that I mean to separate the skill sets and the traits. Take the Troop Generals for instance (Using the symbol "|" as a separating space):

0, Retfan, 5, Retfan_Lipid_General.png, Lipid, 9, 18, | 24, 5, | 27, 9, | 41, 22, | 65, 67, 72

This way one can look straight down the columns at the commas (and periods before "png") to make
certain none are missed. It helps Igard and myself this way since we use hundreds of characters in
the Star Trek mod character files. It takes a bit of work initially, but if you create one 'template'
file, it makes the alignments easier to do IMO.


_____________________________

Shields are useless in "The Briar Patch"...

(in reply to Shark7)
Post #: 11
RE: Watch out for commas... - 10/23/2012 7:36:27 PM   
Shark7


Posts: 7135
Joined: 7/24/2007
From: The Big Nowhere
Status: offline
I had all my columns lined up by tabbing

IE

0, Name, 1, picture.png, race, tab skills, tab traits,

it ended up all nicely lined up in columns. But like I said, I don't have good eyesight, so it tends to blur together anyway. Good news is that I tracked it all down at last though.

_____________________________

Distant Worlds Fan

'When in doubt...attack!'

(in reply to ehsumrell1)
Post #: 12
RE: Watch out for commas... - 10/23/2012 11:32:36 PM   
tjhkkr


Posts: 1836
Joined: 6/3/2010
Status: offline
0, Tralassi, 1, Tralassi_Lipid_Leader.png, 000, -50, 005, 010

That is why I do something like that...



_____________________________

Remember that the evil which is now in the world will become yet more powerful, and that it is not evil which conquers evil, but only love -- Olga Romanov.

(in reply to Shark7)
Post #: 13
RE: Watch out for commas... - 10/24/2012 12:39:17 AM   
ehsumrell1


Posts: 2092
Joined: 8/17/2010
From: The Briar Patch Nebula
Status: online

quote:

ORIGINAL: Shark7

But like I said, I don't have good eyesight, so it tends to blur together anyway.


Sorry to hear that Shark....

But now that its out, you'd better put extra security around your Cargo Bays!

Don't know what's going to happen, but a certain Android we know gets VERY ACTIVE as we near
the holidays!

_____________________________

Shields are useless in "The Briar Patch"...

(in reply to Shark7)
Post #: 14
RE: Watch out for commas... - 10/24/2012 2:39:04 AM   
Shark7


Posts: 7135
Joined: 7/24/2007
From: The Big Nowhere
Status: offline

quote:

ORIGINAL: ehsumrell1


quote:

ORIGINAL: Shark7

But like I said, I don't have good eyesight, so it tends to blur together anyway.


Sorry to hear that Shark....

But now that its out, you'd better put extra security around your Cargo Bays!

Don't know what's going to happen, but a certain Android we know gets VERY ACTIVE as we near
the holidays!


The good news is that it is impossible to steal from an empty cargo bay...the bad news is that all my cargo bays are empty....

_____________________________

Distant Worlds Fan

'When in doubt...attack!'

(in reply to ehsumrell1)
Post #: 15
RE: Watch out for commas... - 10/24/2012 2:45:38 AM   
tjhkkr


Posts: 1836
Joined: 6/3/2010
Status: offline
quote:

ORIGINAL: Shark7
quote:

ORIGINAL: ehsumrell1
quote:

ORIGINAL: Shark7
But like I said, I don't have good eyesight, so it tends to blur together anyway.

Sorry to hear that Shark....
But now that its out, you'd better put extra security around your Cargo Bays!
Don't know what's going to happen, but a certain Android we know gets VERY ACTIVE as we near
the holidays!

The good news is that it is impossible to steal from an empty cargo bay...the bad news is that all my cargo bays are empty....


Data might try hiding his ale stash in your empty cargo bays.
I have not seen the Data-meister around lately though. Maybe our ale is safe then...


_____________________________

Remember that the evil which is now in the world will become yet more powerful, and that it is not evil which conquers evil, but only love -- Olga Romanov.

(in reply to Shark7)
Post #: 16
RE: Watch out for commas... - 10/24/2012 2:57:06 AM   
ehsumrell1


Posts: 2092
Joined: 8/17/2010
From: The Briar Patch Nebula
Status: online

quote:

ORIGINAL: tjhkkr

I have not seen the Data-meister around lately though. Maybe our ale is safe then...

HA!!!!!
Don't bet your most elite Star Destroyer on that one TJ!

_____________________________

Shields are useless in "The Briar Patch"...

(in reply to tjhkkr)
Post #: 17
RE: Watch out for commas... - 10/24/2012 10:15:08 AM   
Shark7


Posts: 7135
Joined: 7/24/2007
From: The Big Nowhere
Status: offline

quote:

ORIGINAL: tjhkkr

quote:

ORIGINAL: Shark7
quote:

ORIGINAL: ehsumrell1
quote:

ORIGINAL: Shark7
But like I said, I don't have good eyesight, so it tends to blur together anyway.

Sorry to hear that Shark....
But now that its out, you'd better put extra security around your Cargo Bays!
Don't know what's going to happen, but a certain Android we know gets VERY ACTIVE as we near
the holidays!

The good news is that it is impossible to steal from an empty cargo bay...the bad news is that all my cargo bays are empty....


Data might try hiding his ale stash in your empty cargo bays.
I have not seen the Data-meister around lately though. Maybe our ale is safe then...



Hmmm...I shall conduct a search of the 'empty' cargo bays at once....of course if I find anything the report will be some time in coming, as I will likely be quite incapacitated for the rest of the evening.

_____________________________

Distant Worlds Fan

'When in doubt...attack!'

(in reply to tjhkkr)
Post #: 18
RE: Watch out for commas... - 11/26/2012 5:58:36 AM   
LiquidSky


Posts: 875
Joined: 6/24/2008
Status: offline
Ummm....

Can't you write the values in a spreadsheet, then export the values as a csv (comma separated values) file? Then you can just copy and paste.

_____________________________

What's the sense of sending $2 million missiles to hit a $10 tent that's empty?

— President George W. Bush, Oval Office meeting, 13 September 2001.

(in reply to Shark7)
Post #: 19
RE: Watch out for commas... - 11/26/2012 3:08:40 PM   
Shark7


Posts: 7135
Joined: 7/24/2007
From: The Big Nowhere
Status: offline
One would assume so, however, that would be doing things the easy way and none of us ever does things the easy way, LOL.

_____________________________

Distant Worlds Fan

'When in doubt...attack!'

(in reply to LiquidSky)
Post #: 20
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Distant Worlds Series >> Design and Modding >> Watch out for commas... Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

0.086