20 July 2007, 18:14 | #21 | |
Mostly Harmless
Join Date: Aug 2004
Location: Northern Ireland
Posts: 1,109
|
Oh, thanks! How did you know?!
Quote:
I thought it might be easier for the slave author to just specify different basemem / expmem size combinations with dc.l in a list , using a similar "special value" as you suggested in the current ws_basemem to reference the start of the list. That way, the logic of memory selection can be contained in WHDLoad itself and also WHDLoad can handle any allocation errors etc. and try the next combination. All you need worry about is which memory combinations you need. Let's go see Wepl then |
|
20 July 2007, 18:18 | #22 |
Global Moderator
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
|
|
20 July 2007, 18:25 | #23 | ||
move.l #$c0ff33,throat
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
|
Umm, I really don't know. I just guessed.
Quote:
Quote:
Word! |
||
20 July 2007, 22:34 | #24 |
Moderator
Join Date: Nov 2001
Location: Germany
Posts: 866
|
There could be added something to make it possible for the slave to have different basemem setups.
But at least in this example I see it not worth the effort. I would make one slave which supports all game features. If this slave requires 1 MB chip, then its ok. Are there really people which use WHDLoad on a machine with 512 kb Chip only? |
21 July 2007, 00:08 | #25 |
move.l #$c0ff33,throat
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
|
Well, while it might be useless in this case, there may be other cases where it will be useful to have! And I think it shouldn't be too hard to add as you have to parse the header anyway. Also, that you think it's not really needed doesn't mean others think the same. So if it's not an insane amount of work, I'd like to see it added. I might be naive but all you have to do is a check if memory config is set in the header and if not, call the given routine. Shouldn't need much time. I might be totally wrong though.
|
21 July 2007, 10:31 | #26 | |
Moderator
Join Date: Jan 2002
Location: France
Posts: 491
|
Quote:
Btw, this feature will be only for slaves wich use kick/osemu and they need to be recompiled (some slaves have absolute value for base/expmem). |
|
21 July 2007, 10:42 | #27 |
move.l #$c0ff33,throat
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
|
Assembling the slaves is done in like 2 seconds so I don't see problem here. Also, they don't have to be recompiled as they don't require latest whdload, i.e. new slaves would use the feature, old slaves just wont. And seeing that there are 4 different slaves created for a single game, well, apparently someone could have used the feature of flexible memory allocation. So I am still not convinced that it isn't needed but then again, I won't care much either.
|
21 July 2007, 10:59 | #28 | |
move.l #$c0ff33,throat
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
|
Quote:
And imho, all that's needed is something like: ; a0: points to start of slave move.l CUSTOM_MEM_WANTED(a0),d0 beq.b .nothing_to_be_done move.l d0,a1 jsr (a1) .nothing_to_be_done at the very beginning of whdload. So why not add this for people who might want to use this? |
|
21 July 2007, 11:33 | #29 | |
Going nowhere
Join Date: Oct 2001
Location: United Kingdom
Age: 50
Posts: 8,988
|
Quote:
I think there are so few games that require it as an option, that the effort expended to implement it doesn't warrant the work. At the moment, the only person inconvenienced at the moment is Killer Gorrilla, and with respect, its not worth the hassle for just one person. Just my opinion thats all |
|
21 July 2007, 11:56 | #30 |
move.l #$c0ff33,throat
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
|
While I understand that, I don't think implementing a feature like that is a lot of work, so why not? If I am wrong, Wepl should correct me of course! If I didn't miss anything obvious, my code posted above should be all that has to be added. I like to have features even if I might not use them all the time, I just think it makes coder's life easier (sometimes).
|
21 July 2007, 12:21 | #31 | |
Going nowhere
Join Date: Oct 2001
Location: United Kingdom
Age: 50
Posts: 8,988
|
Quote:
|
|
21 July 2007, 13:17 | #32 |
move.l #$c0ff33,throat
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
|
Hmm, I'm sorry but that doesn't convince me either. ;D As what I suggested would just occupy 4 additional bytes in the slave header. (would be possible to reduce it to 2 bytes if size REALLY matters).
|
21 July 2007, 13:49 | #33 |
move.w #$4489,$dff07e
Join Date: Sep 2005
Location: Norfolk, UK
Age: 42
Posts: 2,351
|
What about if the slave header stays the same as it is now - and you fill in the minimum required options for the slave to run. Then there could be a WHDLoad_AllocMem() function which you can use if you need it...
It could be linked to the CUSTOM tooltypes of the slave to turn it ON/OFF if you "didn't want the shitty music" for example |
21 July 2007, 14:01 | #34 |
move.l #$c0ff33,throat
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
|
That approach would of course work but I think that this would require much more effort to implement in whdload. (4 bytes added to the slaveheader + a few lines of code vs. complete allocmem function). And even if I sound as if I couldn't live w/o that feature, I actually can very well. But it's nice to discuss these things!
|
21 July 2007, 14:12 | #35 |
2 contact me: email only!
Join Date: May 2001
Location: Auckland / New Zealand
Posts: 3,182
|
I agree with Wepl, Psygore and Galahad. For the 10 (max?) games that have multiple slaves, it's not worth the added complexity. From memory I have done it twice:
I used 2 slaves in Walker - one for speech and one without. The version with speech requires more chip memory, but you are forced to listen to it before each level and cannot skip it, so I always play without the speech! Mortal Kombat 2 gains extra stuff with 2Mb chip. Most other slaves that can have optional extras work with fast memory, which is an optional value. You can tell WHDLoad you want 512k but if there is none, it will still continue. If including 4 versions or 16 or whatever is such a problem, why not just have 2? One for cut-down machines, and one for kick-arse machines? Also if the only difference is the slave itself, what is the problem with including multiple icons? Is it really such a problem? |
21 July 2007, 14:26 | #36 |
move.l #$c0ff33,throat
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
|
Well, I always hear "added complexity" and stuff here and all kinds of workaround solutions. Now I'd really like to know, what is complex about 4 lines of code plus one additional (long)word in the slave header? I really don't get that. But that might just be me.
|
21 July 2007, 14:44 | #37 | |
move.l #$c0ff33,throat
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
|
Quote:
And for added complexity again, all that you (the people who find this feature useless) would see is one additional dc.l 0 in the slaveheader, nothing more, nothing less! You don't like it/need it? Just ignore it! |
|
21 July 2007, 17:25 | #38 | |
HOL / AMR Team Member
Join Date: Dec 2001
Location: Australia
Posts: 2,632
|
Quote:
What Stingray suggests isn't without merit, but I'm sure Bert has a fair list of yet-to-be-implemented features he'd much rather spend time on. No doubt these features would comparatively have far greater benefit for the user base as a whole too! Last edited by DrBong; 21 July 2007 at 17:30. |
|
21 July 2007, 17:45 | #39 | |
Going nowhere
Join Date: Oct 2001
Location: United Kingdom
Age: 50
Posts: 8,988
|
Quote:
Problem with that is there is limited reserve space in the structure of the slave for Bert to simply add stuff everytime someone suggests it. At the moment, all slave structures are the same, if Bert adds too much, there will come a time when he has to expand the structure size and all of a sudden 4000 installs won't work with WHDLoad but a couple of slaves will. |
|
21 July 2007, 20:17 | #40 | |
move.l #$c0ff33,throat
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
|
Quote:
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Dogfight II | taa2609 | request.Old Rare Games | 33 | 10 September 2021 01:16 |
Dogfight Probs ! | Foul | project.WHDLoad | 8 | 14 June 2013 23:17 |
Dogfight by Microprose | brett71 | support.Games | 8 | 04 July 2012 20:47 |
Dogfight: 80 Years Of Aerial Warfare | Reynolds | request.Modules | 1 | 10 December 2009 17:57 |
[Found] -> Skychase. (Was: Dogfight or ACE game) | T_hairy_bootson | Looking for a game name ? | 8 | 30 September 2003 15:49 |
|
|