config.ini editing

Posted by: RobotCaleb

config.ini editing - 23/01/2002 22:33

everytime i open my config.ini file for editing through emplode, it opens the config.ini with a few strange characters, after ive edited it it wont synchronize. it says "someones been here before" or something along those lines and wont sync. i can view the config.ini if i cat it or save it through ftp. im sure i could edit it this way and just put it back. my question is.. whats causing this error? and how do i work through it.
Posted by: tfabris

Re: config.ini editing - 23/01/2002 22:46

You're not the only person to report corruption of the config.ini file.

Has anyone been able to get to the bottom of what's causing this?

Can you shed some light on it? What have you done on the player lately that might have involved writing to the config.ini?
Posted by: RobotCaleb

Re: config.ini editing - 23/01/2002 23:05

attached is my config.ini
unedited and in original 2.0b7 goodness

the first time i noticed this was when i tried to add a favorites vis list. when i open the file in emplode it just displays "; ??? ÿû°L"

will editing it in notepad and reuploading it hurt it?
Posted by: tfabris

Re: config.ini editing - 23/01/2002 23:12

will editing it in notepad and reuploading it hurt it?

Yes. Is that what you did?

Notepad formats the carriage returns in Windows-style. Linux systems can't handle that, they need pure linefeeds (ascii 10's only) not windows-style combinations of carriage returns and linefeeds.

If that was the cause of the trouble, I'll put that one in the FAQ for sure.
Posted by: jheathco

Re: config.ini editing - 23/01/2002 23:17

I had the same problem a while back. I removed my config.ini by getting into the empeg via serial, downgraded, then upgraded back. A big hassle, but it worked.

One of the problems I think has to do with some variable in the config.ini having to do with the current synchronize and the player's number for this variable not corresponding to emplode's?
Posted by: RobotCaleb

Re: config.ini editing - 23/01/2002 23:28

In reply to:

attached is my config.ini
unedited and in original 2.0b7 goodness



In reply to:

Yes. Is that what you did?




im asking if i can edit it in notepad and use it successfully, ignoring the fact that i cant edit it in emplode
Posted by: Terminator

Re: config.ini editing - 23/01/2002 23:34

No, theres no easy way to edit it in notepad and still have it work. You need a utility that will not add the extra carriage returns.
Posted by: svferris

Re: config.ini editing - 24/01/2002 01:17

I recommend using the registry settings file that's available on riocar.org that allows you to edit the config.ini from within emplode. Then, you won't have to worry about using notepad.
Posted by: frog51

Re: config.ini editing - 24/01/2002 01:47

Once it's corrupt like this the emplode config.ini editor seems to keep messing up. I had to term onto the empeg and remove config.ini before I could edit it.

It happened to me 3 times (I think) and seemed to be caused by sync failing ('cos I was running other apps which upset comms) Some of the extra junk added to my config.ini appeared to be from other files on the empeg. Quite weird.
Posted by: tfabris

Re: config.ini editing - 24/01/2002 12:50

Once it's corrupt like this the emplode config.ini editor seems to keep messing up.

Correct. Once the config.ini has become corrupted, the Emplode config.ini editor will not work on it and the only resolution is to delete it and start over (hopefully with a new copy containing the data from the corrupted one).

Some of the extra junk added to my config.ini appeared to be from other files on the empeg. Quite weird.

This is scary, because that sounds like cross-linked sectors or something.

Empeg guys, are you reading this?
Posted by: tonyc

Re: config.ini editing - 24/01/2002 13:05

The most interesting config.ini corruptions I've had have resulted in a config.ini that had an 8 or 9 digit file size. The config.ini contents were the first few hundred bytes, followed by a bunch of garbage. If I'm not mistaken the file size was much larger than the capacity of my Empeg. Makes me think something funky is going on in the directory entries somewhere.
Posted by: ninti

Re: config.ini editing - 24/01/2002 13:59

I have never tried it on the Empeg, but sending the data in Ascii mode (such as using rz -a) should strip the excess characters off.
Posted by: TreeRip

Re: config.ini editing - 24/01/2002 16:54

FWIW, I've found this free program "EditPad" to be a fantastic replacement for notepad and it handles the CR/LF conversions perfectly for editing UNIX or Mac text files. It has saved me many times while working in a mixed O/S environment.

Cheers!
Dave
Posted by: tonyc

Re: config.ini editing - 24/01/2002 17:13

Agreed, EditPad rules. Definitely worth the $25 or whatever it costs.
Posted by: wfaulk

Re: config.ini editing - 24/01/2002 18:40

Everyone should use vi!

Grab a copy of vim for your favorite OS today! Guaranteed to be more powerful than whatever editor you're using now!



Seriously, I just did what I think is something really fancy with Vim today. I was editing up a C bitmap by hand. I didn't know what values corresponded to what colors (it was an indexed color bitmap with no index ), but I had a copy of the image it was based off of. So I could go through the file and replace each instance of the hex code (in 0xab format) with the real color I wanted (in octal 0777 format). So it was easy to search for outstanding `0x' strings. But one I was there, it was a real pain to do all the math based on the column and line number to find to what pixel it corresponded. So what I did was redefine vim's ruler to do the math for me, so it displayed x by y coordinates in the bitmap instead of column by line coordinates. Saved me probably hours of work.

Anyway, enough evangelizing.
Posted by: tonyc

Re: config.ini editing - 24/01/2002 18:42

I could not POSSIBLY be as l33t as that. I do love vi and use it every day at work, but it was simpler to just do the editing of config.ini in a text editor and then paste it into Emplode's dialog. But it seems Emplode was doing some serious munging of the file, so I will go back to the ol' standby next time.
Posted by: Yang

Re: config.ini editing - 24/01/2002 18:42

I do all my programming with notepad.. I'm serious..
Posted by: wfaulk

Re: config.ini editing - 24/01/2002 18:46

I know. I just have to evangelize every chance it comes up. No good reason. Sorry.
Posted by: Yang

Re: config.ini editing - 24/01/2002 18:52

Heh.. I meant it more as a joke.. I wrote that track title->number script last night all in notepad.. As a person who never has/nor will learn to use VI, I tend towards the more obvious editing utilities.. At work I use Visual SlickEdit and absolutely love it.. saves me about an hour of work a day (sometimes more) just being able to record intelligent macros..

The only reason I use notepad, is that I haven't been bothered to find something else to use.. Besides, nothing I've been doing at home needs anything that I can't manage myself..
Posted by: jnmunsey

Re: config.ini editing - 24/01/2002 18:56

Textpad is another good text editor for saving text files in UNIX format..

Oh, I do a LOT of programming using Textpad, and I am not kidding...

Posted by: Yang

Re: config.ini editing - 24/01/2002 18:58

After a day of programming at work, when I get home, it's hard to work up the energy needed to go and search for a text editing tool. The editing is hard enough, to add the search for a tool to the task is a little much..
Posted by: bonzi

Re: config.ini editing - 25/01/2002 02:38

Visual SlickEdit is excellent. I use it with vi mappings, of course
Posted by: frog51

Re: config.ini editing - 25/01/2002 03:09

UltraEdit or Notepad on Windows, vi or gnotepad on Linux, jot on IRIX. You need no other editors:) I use these for html cration, C, Pascal, C++,CPFW1 object editing etc etc etc and they all do the job.
Posted by: hybrid8

Re: config.ini editing - 25/01/2002 19:44

I'll put in another for windows: TextPad (been my editor of choice since 1995).

And if anyone is using an Amiga, I'm willing to bet CygnusEd is still the best. For the Mac, BBEdit is probably tops.

Bruno
Posted by: Micman2b

Re: config.ini editing - 25/01/2002 20:13

I have been using UltraEdit for a long time because it is a great text editor.

Posted by: Chuck

Re: config.ini editing - 25/01/2002 21:27

Aww, man, CygnusEd ruled!