Caanoo / WIZ Caanoo Ini Files


Alex.

Retired
Joined
Aug 24, 2005
Messages
4,616
Hey,

I read on the termula archive page that Caanoo has slightly different INI files than Wiz.

Code:
[info]
name="Terminal"
path="/terminal/termula2x.gpu"
icon="/terminal/termula2x.png"
title="(title image)"
group="APPS"

What values can 'groups' have, I assume APPS and GAMES? And what dimensions must the title image have?

Also, have the default SD card dirs changed at all? On Wiz a game would be put like this:

Code:
/game
/game/SomeGameDir
/game/SomeGame.ini
 
taken from the sdk pdf : (in the other thread from sbock)

i also read that wiz (ini) files are compatible with caanoo but not the other way around (it's mentioned in the pdf as well, but it could have been the other way around)

.
Compliance for Game Settings File
A.
Configuration of Settings File
i.
The name of a folder must be the same as the filename of a settings file.
Indicate any in-between spaces with “_” (under-bar).
(For example, for a folder named kaiten, the game settings file is named
kaiten.ini. Be sure to be case sensitive.)
ii.
The specific items are as follows:
1
Name: Title to be displayed on the game list (must be shorter than 30
English characters)
2
Path: Name of an executable file that includes routes to the game folder of
the SD card (.gpe)
3
Icon: Name of an icon file that includes routes to the game folder of the SD
card
Image format: 26 X 26 Pixel PNG 32 Bit (A8R8G8B8) file. Transparent effect
is available.
4
Title: Image file to be displayed while being selected in the game list
Image format: 305 X 57 Pixel PNG 32 Bit (A8R8G8B8) file. Transparent effect
is not available.
For example:
5
iii.
Group: Classifies contents into groups. (GAME/APPS)
For demo versions, be sure to add the text "DEMO" to the Name field and
display it on the title image. (This is needed to distinguish user applications.)
B.
Location of Settings File
i.
Settings files are located in the root/game folder of the corresponding device
Page6 / 22
GP2X Platform Development Guide / Development Compliance
2010.08.10
GP2X Platform Development Guide /
Development Compliance
(SD, ND, NAND) where the game is installed.
C.
Example of Settings Files
[info]
Name =”Spin Pastry Chef”
Path=”/kaiten/kaiten.gpe"
Icon=”/kaiten/icon.png”
Title=”/kaiten/title.png”
Group=GAME

i'm not certain if we can put just anything there, but in common.ini (on the canoo) they have this there same to be "ini sections" with the same name (apps / game) etc

i wonder what would happen if i put launcher there, goana try it out :)

Code:
[exit_icon]
index = 0

[game]
position = 0
lastdir = /mnt/sd/game

[launcher]
lastdir = /mnt/sd
position = 14

[photo]
position = 0
lastdir = /mnt/sd/photo

[movie]
position = -1
lastdir = /mnt/sd/movie

[apps]
position = 161
lastdir = /mnt/sd/apps

[music]
position = 0

[setting]
vibrate = 0

[ebook]
position = 0

[main]
language = en_US.utf8

[display]
brightness = 1

[usbhost]
enable = 1

about the directories, i think they are ment to be relative from /mnt/sd/game so like /gamename/file would become /mnt/sd/game/gamename/file although not sure

also there seems to be another info field size for the size of the whole game / app
the games downloaded from fungp have this

for example from the game Patissier (that is located in /mnt/sd/game/patissier_c) the ini file (that is located in /mnt/sd/game) is the following
Code:
[info]
name="Patissier"
path="/patissier_c/patissier_c.gpe"
icon="/patissier_c/rotate_s.png"
title="/patissier_c/rotate.png"
group="GAME"
size="38000"
 
Alright, thanks for all the info.

It looks like GPH put a lot more thought into Caanoo than in Wiz, they seem to care more about these details. Almost as if Wiz was a beta Caanoo. :lol:
 
It seems like you can't have multiple ini files pointing to the same game directory. The Caanoo only sees one of them. this has happended to me with Quake and its 2 mission packs.
 
No, the ini file has to have the name of the folder... Or at least a folder. I haven't tried what will happen if you write the path to an executable in a different folder. It is quite annoying for me since i wanted to label the ini files depending on their console (caanoo/wiz).

/Uni
 
I was talking with simon@gp2x.com earlier, asking about autoboot.gpu, and he mentioned there's an autoexec.ini that you can place in the root of the SD/USB memory, and that it functions exactly like other INI files.
I wasn't able to get it to work though, I'm not sure if the feature is currently implemented or is going to be implemented or what.
 
RupeeClock said:
I was talking with simon@gp2x.com earlier, asking about autoboot.gpu, and he mentioned there's an autoexec.ini that you can place in the root of the SD/USB memory, and that it functions exactly like other INI files.
I wasn't able to get it to work though, I'm not sure if the feature is currently implemented or is going to be implemented or what.

when i was looking for the command line parameters of the menu i did notice references to some "autoexec" files, but will need to look at it again to know the exact location (check my tidbits thread)
 
Last edited by a moderator:
fettouhi said:
It seems like you can't have multiple ini files pointing to the same game directory. The Caanoo only sees one of them. this has happended to me with Quake and its 2 mission packs.

hi everyone,

I found a workaround to have menu entries for quake paks in the same directory.
It is a bit dirty but it does the trick

I put the quake1 directory under game. I think it could be placed anywhere else but for the example let's say it is in game.
I made 3 other dirs under game : quake, quake-armagon and quake-diss
under quake, I wrote a quake.gpe script :

Code:
#!/bin/sh

cd ../quake1
./glquake
sync

cd /usr/gp2x/
exec /usr/gp2x/gp2xmenu

under quake-armagon, I put a quake-armagon.gpe script :

Code:
#!/bin/sh

cd ../quake1
./glquake -game armagon
sync

cd /usr/gp2x/
exec /usr/gp2x/gp2xmenu

and under quake-diss, I put a quake-diss.gpe script :

Code:
#!/bin/sh

cd ../quake1
./glquake -game diss
sync

cd /usr/gp2x/
exec /usr/gp2x/gp2xmenu

finally, under game, I wrote the 3 following ini scripts :

quake.ini :

Code:
[info]
name="Quake"
path="/quake/quake.gpe"
icon="/quake1/quake1.png"
title="/quake1/quakeq.png"

quake-armagon.ini :

Code:
[info]
name="Quake"
path="/quake-armagon/quake-armagon.gpe"
icon="/quake1/quake1.png"
title="/quake1/quakeq.png"

quake-diss.ini :

Code:
[info]
name="Quake"
path="/quake-diss/quake-diss.gpe"
icon="/quake1/quake1.png"
title="/quake1/quakeq.png"

The 3 entries show in the game menu.
I hope it helped.
 
Last edited by a moderator:
Back
Top