Emptriv Questions

Posted by: deface

Emptriv Questions - 19/07/2007 16:31

Hello:

Now that I have my Empeg Mark-II up and running, I'd like to install some of the 3rd party apps (mainly emptriv). I did some searching, and came across this thread:

http://empegbbs.com/ubbthreads/showflat.php/Cat/0/Number/94922/page/43/fpart/1/vc/1

Now, this is a very old thread, and I know that there have been many Hijack updates since this thread. I can follow the directions on getting emptriv onto my player using Hijack's FTP server, but how can I get it to bind to my Hijack menu? I found some info about editing the config.ini file and adding a line similar to this:

@MENUEXEC Emptriv exec /drive0/files/emptriv/emptriv

Does it matter where this line is located in config.ini, and does my syntax look correct? I was also wondering if there is a way to have Emptriv not interfere with the syncing process at all, without having to kill the app via hyperterminal each time.

Finally, how can I add my own questions to emptriv? I have seen that the format is:

"CATEGORY" "Question" "Difficulty" "Answer #1" "Answer #2" "Answer #3" "Answer #4" "Answer #5" "Number of Correct Answer"

Can I just create a tab-delimited file in excel with the columns in this order, then rename the file to *.dat?



Thanks in advance!

-Eric
Posted by: deface

Re: Emptriv Questions - 19/07/2007 16:36

Also, I am running version 2.0 of the developer firmware, and version 476 of hijack.
Posted by: tonyc

Re: Emptriv Questions - 19/07/2007 16:55

Your menuexec line needs a leading semicolon:

;@MENUEXEC emptriv exec /drive0/files/emptriv/emptriv

It needs to be located in the [hijack] section of config.ini, which you should add if it doesn't exist.

Question files are as you described. You should indeed be able to export a tab-separated file with those fields in it, but I've not tried it myself. The questions that come with the program were generated with a bunch of Perl scripts.

All of that being said, emptriv was indeed written a long time ago and I can't guarantee it still works properly. I still have it on my own player, but haven't fired it up in ages.
Posted by: deface

Re: Emptriv Questions - 19/07/2007 17:54

What about the issue with not being able to sync because of a running app on my music partition? Has this been resolved with the implementation of ;@MENUEXEC? Or will I have to manually kill emptriv every time I sync with Emplode? If that's what I need to do, what's the best way to do it?
Posted by: tonyc

Re: Emptriv Questions - 19/07/2007 18:12

MENUEXEC just launches the programs. If something is running on the music partition, it will still cause problems with syncing.

You can add another MENUEXEC command to kill emptriv. Probably look something like this:

;@MENUEXEC kill emptriv exec /usr/bin/killall emptriv
Posted by: deface

Re: Emptriv Questions - 19/07/2007 18:18

That sounds like it should work. I was planning on putting some of the games onto my Empeg, so do you think there's a way to have 1 MENUEXEC command to kill all running 3rd party apps, whether only emptriv is running, or only emptris is running, or if both are running?
Posted by: Redrum

Re: Emptriv Questions - 19/07/2007 18:37

If you get it going please let me know, I couldn't. I did have it working on older versions of the kernel and play app.

http://empegbbs.com/ubbthreads/showflat....true#Post245448
Posted by: deface

Re: Emptriv Questions - 19/07/2007 18:49

I'll try it tonight when I get home, and I'll let you know how it turns out
Posted by: mlord

Re: Emptriv Questions - 19/07/2007 19:18

Quote:
MENUEXEC just launches the programs. If something is running on the music partition, it will still cause problems with syncing.

You can add another MENUEXEC command to kill emptriv. Probably look something like this:

;@MENUEXEC kill emptriv exec /usr/bin/killall emptriv


No blanks allowed in the menu label, so the above entry WILL NOT WORK.

Do this instead:

;@MENUEXEC kill_emptriv exec /usr/bin/killall emptriv
Posted by: tonyc

Re: Emptriv Questions - 19/07/2007 19:42

Ugh, of course, since there's no delimiter between the label and program.

On my player I actually use the labels "+progname" and "-progname" for starting and killing of programs, respectively.
Posted by: deface

Re: Emptriv Questions - 19/07/2007 21:12

I added these commands to my config.ini, and I can now see emptriv (and now emptris) in my hijack menu. Emptris runs fine, but no luck with Emptriv. When I open hyperterminal (for logging) and try opening emptriv, here's what I see:

opening display...
opening font file...
cannot open font file

Then my Empeg reverts back to the main screen. Now, I am also unable to kill either app. The hijack menu option didn't work, so I tried:

/usr/bin/killall emptriv

But the problem is that in my /usr directory, there is no folder called /bin, so I get:

bash: killall: command not found

How else can I force these apps to close?
Posted by: mlord

Re: Emptriv Questions - 19/07/2007 22:10

Quote:
I added these commands to my config.ini, and I can now see emptriv (and now emptris) in my hijack menu. Emptris runs fine, but no luck with Emptriv. When I open hyperterminal (for logging) and try opening emptriv, here's what I see:

opening display...
opening font file...
cannot open font file

Then my Empeg reverts back to the main screen. Now, I am also unable to kill either app. The hijack menu option didn't work, so I tried:

/usr/bin/killall emptriv

But the problem is that in my /usr directory, there is no folder called /bin, so I get:

bash: killall: command not found

How else can I force these apps to close?


There is no (standard) killall command on the player. You could compile / install it yourself, or do something like this (below) instead:
Code:


[hijack]
;@MENUEXEC Kill_emptriv for y in /proc/[0-9]* ; do if ( grep -l 'emptriv' $y/cmdline &>/dev/null ); then kill ${y:6}; fi; done



If you try this, then use cut and paste to directly copy from the above,
rather than trying to manually type it in --> if you type it, you will get it wrong.

Cheers
Posted by: tonyc

Re: Emptriv Questions - 19/07/2007 22:27

Quote:

opening display...
opening font file...
cannot open font file


Alright, I guess emptriv doesn't work with the newer font files, or the standard developer image is missing a font that it uses. I guess I will have to update it at some point to do so. The code was written a long time ago, so upgrading it might not be a trivial (ha!) exercise.
Posted by: Redrum

Re: Emptriv Questions - 20/07/2007 09:40

Yes, I got most of the other older graphic apps to work. The one thing I liked about Emptriv was that it was not graphics based. If you want a graphics game there are a lot of better solutions out there than an empeg.