Problem With The 'beta' Fw 1.4


Code:
#/bin/sh

# 1) Choose 0 for FPLL and 1 for UPLL.
# 2) -20 and 36 for FPLL-mode and -5 and 10 for UPLL-mode.
# 3) CPU-frequency in MHz (33MHz - 320MHz)
#/mnt/sd/cpu_speed.gpu 1 5 279 > /mnt/sd/output.txt

/mnt/sd/cpu_speed.gpe 1 5 279

cd /mnt/sd/mamegp2x/

./mame_gp2x.gpe
sync
cd /usr/gp2x
exec /usr/gp2x/gp2xmenu

Here, i made one for you. Also, whats the best upll settings?
 
hm ... that's a typical misunderstanding :D

alter /mnt/sd/mamegp2x/mnt/sd/mamegp2x/mame_gp2x.gpe to /mnt/sd/mamegp2x/mame_gp2x.gpe .... then it should work

you have to understand the meaning of ./
explernation (i hope my english is good enough):

./ is short for the directory in which you are at the time. It saves much time, if you are in a console-enviroment like linux-terminals.
If you are in the directory /mnt/sd/abc/123/ and want to run a program called run.exe in this folder, you can not type run.exe and hit enter, because the application won't run. Instead you have to type the whole path (/mnt/sd/abc/123/run.exe in this example). To prevent this time-consuming input, you can simply type ./run.exe too, where ./ is short for /mnt/sd/abc/123/ .

EDIT: hm ... /mnt/sd/mamegp2x/mame_gp2x.gpe didn't work ... i think mame2x uses the path of your script ... otherwise i have no quick explernation for this (it's late [5am] and i drank some whisky, so mentaly i'm a bit slow :D) ... ao, use the lines PSyMastR posted.
 
Thanks for your help guys ... I can't get it to work no matter what.

PSyMastR's script did the same thing ... I'm off to re-install cpu_speed ver 1.2 :)
 
god_at_hell posted on Feb 8 2006 at 10:51 PM said:
EDIT: hm ... /mnt/sd/mamegp2x/mame_gp2x.gpe didn't work ... i think mame2x uses the path of your script ...
Yeah, I was going to suggest doing a cd to the mame directory just for that reason.

Keep at it TelcoLou - no pain, no gain! ;)
 
Last edited by a moderator:
Thank you all sooooo much. I'm truly a fucking moron. :p

For some reason, my Programmer's Notepad was set to default ... i.e. WIndows line endings

I used it before to edit some other script, and I should have known to check, but I guess I assumed the program would save my preferences.

Thanks again for your patience and kindness ... good karma to all :D
 
TelcoLou posted on Feb 9 2006 at 01:35 AM said:
Thank you all sooooo much. I'm truly a fucking moron. :p

For some reason, my Programmer's Notepad was set to default ... i.e. WIndows line endings

I used it before to edit some other script, and I should have known to check, but I guess I assumed the program would save my preferences.

Thanks again for your patience and kindness ... good karma to all :D

Don't beat yourself up -- those fscking <cr><lf> endings have flummoxed many a good coder. Damn those old printers that needed two characters to start printing the next line. (Or damn PC-DOS, who screwed us all just so they didn't have to write a printer driver.)

A thought just occurred to me, however. Since Unix and its derivatives use the shebang (#!) line to figure out who is in charge of running the script, what would happen if you created a file called /bin/sh<cr> (with the <cr> character as part of the name), that converted the script via dos2unix (or one of its variants) and then passed it on to /bin/sh?

If I feel adventurous, I'll try it sometime.
 
Last edited by a moderator:
bjimba posted on Feb 9 2006 at 12:49 AM said:
Don't beat yourself up -- those fscking <cr><lf> endings have flummoxed many a good coder. Damn those old printers that needed two characters to start printing the next line.
I know. Like it was oh so usefull to have the CR by itself so you could keep printing on the same line. :lol:

Oh, I'm so glad the days of that CR/LF crap for printers is long gone ;)
 
Last edited by a moderator:
Drak posted on Feb 9 2006 at 10:18 AM said:
Shikaku posted on Feb 8 2006 at 01:05 PM said:
Drak posted on Feb 8 2006 at 03:33 PM said:
Squidge posted on Feb 8 2006 at 11:35 AM said:
What I was told GPH were going to do was reduce the clock frequency to 66Mhz whilst in the menu, and then increase it to 200Mhz when it runs a game or utility, so it will obviously override any configuration by tools overclocking the system.

The only way around this is what god_at_hell suggests - use a script to launch the emu, or wait for the developer to add in overclocking support.

Say I want to make a simple script to launch SquidgeSnes at 266mhz could you lend a hand? :)

Check the readme: there's an example.

Which Readme.. damn im dumb :(

I'm guessing the SquidgeSNES readme would be the first place you should look. Another good place would be the readme for whatever launcher you will be using. There was just a new release of Selector today.
 
Last edited by a moderator:
remowilliams posted on Feb 9 2006 at 07:24 AM said:
bjimba posted on Feb 9 2006 at 12:49 AM said:
Don't beat yourself up -- those fscking <cr><lf> endings have flummoxed many a good coder. Damn those old printers that needed two characters to start printing the next line.
I know. Like it was oh so usefull to have the CR by itself so you could keep printing on the same line. :lol:

Oh, I'm so glad the days of that CR/LF crap for printers is long gone ;)

Code:
Wh t d  yo   ean " ot us u "
   a   o   u m   , n     f l ?
 
Last edited by a moderator:
I downloaded this program yet it still gives me jibberish even after UNIX format is selected.

I have no idea what i am doing yet I need my scripts to run for LCD tweaking..

HELP!

TIA!
 
Use this example:

#!/bin/sh
/mnt/sd/cpu_speed.gpe 1 1 250
/mnt/sd/mamegp2x/mame_gp2x.gpe
sync
cd /usr/gp2x/
exec /usr/gp2x/gp2xmenu

Open it up in notepad++ and then select "View" and then "show all characters".
You should only see "LF" at the end if the lines. If you see "LF""CR" click on "Format" then "Convert to Unix format".
Then save the file to your SD card as something like "mamegp2x-250.gpe".

The script should be pretty clear. The cpu_speed.gpe program lives in the root directory of the SD card, and "mame_gp2x.gpe" is in the "mamegp2x" directory on the SD card.
 
I've just been writing a load of scripts for this in anticipation of upgrading to 1.4 later today. I'm ending up with a few gpe files for each program, two different overclocks (my 'safe' 275 and unstable 285) and one with no clock change.

Would it be possible to do something along the lines of using a selector config file to pass a clock setting from a range to the cpu_speed program, and then drop straight into another selector program to then pass a rom file on to the emu?
You could then have a long list of cpu settings in the first config file and you would only need one gpe, choosing between them using A and Y.
I've only half thought this through.. I might give it a try later on. :huh:
 
Back
Top