Re: CusPop TODO list
Posted: December 27th, 2013, 9:09 pm
I see you also added some space between the lines.
Now it looks much better!
Now it looks much better!
Code: Select all
for ($i=0;$i<$global_n;$i++) {
$all1="f$i";
$all.=$coma."z.$all1";
$coma=',';
}
Code: Select all
for ($i = 0; $i < $global_n; $i++)
{
$all = "f" . $i;
$all .= $comma . "z." . $all . "1";
$comma = ',';
}
Auch, sorry. I'll fix that this weekend.David wrote:Looks like you accidentally made a mistake when you cleaned up the formatting.
Code: Select all
type="array"
Code: Select all
<read type="array" name="where will the kid have the sword">
I don't know if the longer ones could be changed to char....probably needs to be a ((un)signed) char.
Look at the value of the first option, and count how many space-separated words are there.What I do know is that diffpop will not understand that "where will the kid have the sword" is one byte.
Wait, I'm not sure what you mean by "still" here...I don't even understand how it still works
I understand the hacks are of varying sizes, and didn't mean to imply it'd be preferable to convert all of them to type="char".David wrote:I don't know if the longer ones could be changed to char.
I meant after you added the type="array" hacks, since I assumed the code would use - only - the type="" fields to figure out how many bytes to work with for each hack.Norbert wrote:I don't even understand how it still works
Code: Select all
<hack name="sword">
<offset file="u0" value="0x61D5"/>
<offset file="u3" value="0x56E5"/>
<offset file="u4" value="0x5B91"/>
<offset file="p0" value="0x4B25"/>
<offset file="p3" value="0x4FA5"/>
<offset file="p4" value="0x4A61"/>
<check codes="83 7E 06 01"/>
<read type="array" name="where will the kid have the sword">
<option value="74" default="true">On all levels except level 1</option>
<option value="EB">On none of the levels</option>
</read>
<check codes="05"/>
</hack>
Code: Select all
<hack name="sword">
<offset file="p0" value="0x4B25"/>
<offset file="u0" value="0x61D5"/>
<offset file="p3" value="0x4FA5"/>
<offset file="u3" value="0x56E5"/>
<offset file="p4" value="0x4A61"/>
<offset file="u4" value="0x5B91"/>
<check codes="83 7E"/>
<read type="long" name="where will the kid have the sword">
<option value="06 01 74 05" default="true">On all levels except level 1</option>
<option value="06 02 74 05">On all levels except level 2</option>
<option value="06 03 74 05">On all levels except level 3</option>
<option value="06 04 74 05">On all levels except level 4</option>
<option value="06 05 74 05">On all levels except level 5</option>
<option value="06 06 74 05">On all levels except level 6</option>
<option value="06 07 74 05">On all levels except level 7</option>
<option value="06 08 74 05">On all levels except level 8</option>
<option value="06 09 74 05">On all levels except level 9</option>
<option value="06 10 74 05">On all levels except level 10</option>
<option value="06 11 74 05">On all levels except level 11</option>
<option value="06 12 74 05">On all levels except level 12a</option>
<option value="06 13 74 05">On all levels except level 12b</option>
<option value="06 14 74 05">On all levels except princess level</option>
<option value="06 15 74 05">On all levels except potions level</option>
<option value="06 00 74 05">On all levels except demo level</option>
<option value="06 01 EB 05">On none of the levels</option>
<option value="06 01 90 90">On all of the levels</option>
<option value="06 02 7C 05">On level 2 and higher</option>
<option value="06 03 7C 05">On level 3 and higher</option>
<option value="06 04 7C 05">On level 4 and higher</option>
<option value="06 05 7C 05">On level 5 and higher</option>
<option value="06 06 7C 05">On level 6 and higher</option>
<option value="06 07 7C 05">On level 7 and higher</option>
<option value="06 08 7C 05">On level 8 and higher</option>
<option value="06 09 7C 05">On level 9 and higher</option>
<option value="06 10 7C 05">On level 10 and higher</option>
<option value="06 11 7C 05">On level 11 and higher</option>
<option value="06 12 7C 05">On level 12a and higher</option>
<option value="06 13 7C 05">On level 12b and higher</option>
<option value="06 14 7C 05">On princess and potions levels</option>
</read>
</hack>
That would be color 12 (see draw_tile_anim() in seg008.c), but its RGB values are overridden (see init_game_main() in seg000.c).Norbert wrote:I just noticed that CusPop has "Bubbles of the blue potion" and "Bubbles of the green potion", but not "Bubbles of the red potion".
Maybe I'm overlooking something.