Forums

Sega Master System / Mark III / Game Gear
SG-1000 / SC-3000 / SF-7000 / OMV
Home - Forums - Games - Scans - Maps - Cheats - Credits
Music - Videos - Development - Hacks - Translations - Homebrew

View topic - Silver Valley

Reply to topic
Author Message
  • Joined: 15 Aug 2019
  • Posts: 258
  • Location: Lancashire UK
Reply with quote
Silver Valley
Post Posted: Wed Jan 13, 2021 9:21 am
Last edited by 8BitBoy on Sat Jan 16, 2021 3:10 pm; edited 1 time in total
Recently bought a copy of Silver Valley on cartridge for SMS. Does anyone know where I can buy or download a replacement cover please? Already tried eBay but wondered if the dev has a URL or something. Hoping he (or someone in the know) sees this.

Thanks,
8BitBoyUK
  View user's profile Send private message Visit poster's website
  • Joined: 05 Sep 2013
  • Posts: 3763
  • Location: Stockholm, Sweden
Reply with quote
Post Posted: Wed Jan 13, 2021 11:09 am
8BitBoy wrote
Recently bought a copy of Silver Valley on cartridge for SMS.


Where did you find that?
  View user's profile Send private message Visit poster's website
  • Joined: 15 Aug 2019
  • Posts: 258
  • Location: Lancashire UK
Reply with quote
Post Posted: Wed Jan 13, 2021 11:28 am
Facebook :)
  View user's profile Send private message Visit poster's website
  • Joined: 15 Aug 2019
  • Posts: 258
  • Location: Lancashire UK
Reply with quote
Post Posted: Wed Jan 13, 2021 1:21 pm
Just arrived

  View user's profile Send private message Visit poster's website
  • Joined: 15 Aug 2019
  • Posts: 258
  • Location: Lancashire UK
Reply with quote
I found one... Link below
Post Posted: Wed Jan 13, 2021 3:22 pm
https://www.smspower.org/forums/files/silver_valley_113.png
  View user's profile Send private message Visit poster's website
  • Joined: 28 Jan 2017
  • Posts: 549
  • Location: Málaga, Spain
Reply with quote
Post Posted: Thu Jan 14, 2021 6:50 pm
Ummmm....

Does somebody knows about an optimized sqrt function for sdcc? Since previous games were made with z88dk, i had the math unit, but i don't find the same on sdcc!

[edit]:
Have found:

http://www.retroprogramming.com/2017/07/a-fast-z80-integer-square-root.html

If someone could encapsulate the fnal code into a working sdcc function...
  View user's profile Send private message
  • Joined: 05 Sep 2013
  • Posts: 3763
  • Location: Stockholm, Sweden
Reply with quote
Post Posted: Thu Jan 14, 2021 7:01 pm
I don't usually use sqrt(), there's usually a way to avoid it ;)

BTW in case we could use this one for instance, conveniently wrapped in C

unsigned char fast_sqrt (unsigned int value) __naked __z88dk_fastcall {
__asm
; fast 16-bit isqrt by Zeda Thomas
;Feel free to use for whatever :)

;Input: HL
;Output: L is the integer square root of HL
;Destroys: HL,DE (D is actually 0)

  ld de,#0x05040  ; 10
  ld a,h        ; 4
  sub e         ; 4
  jr nc,sq7     ;\
  add a,e       ; | branch 1: 12cc
  ld d,#16      ; | branch 2: 18cc
sq7:            ;/

; ----------

  cp d          ; 4
  jr c,sq6      ;\
  sub d         ; | branch 1: 12cc
  set 5,d       ; | branch 2: 19cc
sq6:            ;/

; ----------
  res 4,d       ; 8
  srl d         ; 8
  set 2,d       ; 8
  cp d          ; 4
  jr c,sq5      ;\
  sub d         ; | branch 1: 12cc
  set 3,d       ; | branch 2: 19cc
sq5:            ;/
  srl d         ; 8

; ----------

  inc a         ; 4
  sub d         ; 4
  jr nc,sq4     ;\
  dec d         ; | branch 1: 12cc
  add a,d       ; | branch 2: 19cc
  dec d         ; | <-- this resets the low bit of D, so `srl d` resets carry.
sq4:            ;/
  srl d         ; 8
  ld h,a        ; 4

; ----------

  ld a,e        ; 4
  sbc hl,de     ; 15
  jr nc,sq3     ;\
  add hl,de     ; | 12cc or 18cc
sq3:            ;/
  ccf           ; 4
  rra           ; 4
  srl d         ; 8
  rra           ; 4

; ----------

  ld e,a        ; 4
  sbc hl,de     ; 15
  jr c,sq2      ;\
  or #0x20        ; | branch 1: 23cc
  db #254        ; |   <-- start of `cp *` which is 7cc to skip the next byte.
sq2:            ; | branch 2: 21cc
  add hl,de     ;/

  xor #0x18      ; 7
  srl d         ; 8
  rra           ; 4

; ----------

  ld e,a        ; 4
  sbc hl,de     ; 15
  jr c,sq1      ;\
  or #8          ; | branch 1: 23cc
  db #254        ; |   <-- start of `cp *` which is 7cc to skip the next byte.
sq1:            ; | branch 2: 21cc
  add hl,de     ;/

  xor #6         ; 7
  srl d         ; 8
  rra           ; 4

; ----------

  ld e,a        ; 4
  sbc hl,de     ; 15

  sbc a,#255     ; 7
  srl d         ; 8
  rra           ; 4
  ld l,a        ; we need to place result in L
  ret           ; because this is nakėd
__endasm;
}


edit: immediates fixed, SDCC uses some different asm dialect...
edit2: made the function nakėd
  View user's profile Send private message Visit poster's website
  • Joined: 28 Jan 2017
  • Posts: 549
  • Location: Málaga, Spain
Reply with quote
Post Posted: Thu Jan 14, 2021 10:24 pm
You are my hero ;)
  View user's profile Send private message
  • Joined: 05 Sep 2013
  • Posts: 3763
  • Location: Stockholm, Sweden
Reply with quote
Post Posted: Fri Jan 15, 2021 1:04 pm
you are mine! :D
  View user's profile Send private message Visit poster's website
  • Joined: 28 Jan 2017
  • Posts: 549
  • Location: Málaga, Spain
Reply with quote
Post Posted: Sat Jan 16, 2021 7:48 am
had to replace two lines (a dot before "db")

ex:

"db #254" to ".db #254"

but it works :)
  View user's profile Send private message
  • Joined: 02 Mar 2011
  • Posts: 165
  • Location: Valencia,Spain.
Reply with quote
Post Posted: Sat Jan 16, 2021 9:55 am
Hi eruiz00, Do you have the intention of releasing physical copies of your games?.

Your games are very good, and It would be awesome.

Thank you!.
  View user's profile Send private message
  • Joined: 28 Jan 2017
  • Posts: 549
  • Location: Málaga, Spain
Reply with quote
Post Posted: Sat Jan 16, 2021 11:10 am
Maybe... or maybe not.

If someone wants to make physical copies and we agree in the terms, we could release the rom as physical edition months before releasing the rom (although i am almost sure someone will release the rom before!)... maybe a crowfunding?

But this is not my main objetive (i would be making games for android or unity or elsewhere) and this game wont be finished in a long time. The fact is the new project main concept is a sort of development and narrative sandbox, too many things to do in it, if i want it to be properly finished.

... and I feel myself free at all, now that i have unlimited code size (checked and confirmed... i have now a 160kb rom with code on several banks working) i am doing the things more refined than before, with finished menus, effects, minigames, transitions, a more complex engine, etc. too many work dude!

Regards.
  View user's profile Send private message
  • Joined: 15 Aug 2019
  • Posts: 258
  • Location: Lancashire UK
Reply with quote
1st boss disappears off screen
Post Posted: Sat Jan 16, 2021 3:13 pm
Finally made it to first boss (dragon). He's bloody hard as nails. Managed to knock him off the screen but now can't progress. Will have to reset

  View user's profile Send private message Visit poster's website
  • Joined: 28 Jan 2017
  • Posts: 549
  • Location: Málaga, Spain
Reply with quote
Post Posted: Sat Jan 16, 2021 9:32 pm
It was a known ( by me) bug... I tryed to fix it but i see i did not it at all. Shame on me.
  View user's profile Send private message
  • Joined: 02 Mar 2011
  • Posts: 165
  • Location: Valencia,Spain.
Reply with quote
Post Posted: Sun Jan 17, 2021 7:30 am
WoW eruiz00, It is fantastic reading about your new project and finding expresions like "now that i have unlimited code size (checked and confirmed", "doing the things more refined than before", "with finished menus", "effects, minigames, transitions", "a more complex engine, etc"

Altought your main objective is not releasing physical copies, maybe It would help you accomplishing the main one watching your work beatifully presented and earning some coins for working hard.

Regards dude!.
  View user's profile Send private message
  • Joined: 15 Aug 2019
  • Posts: 258
  • Location: Lancashire UK
Reply with quote
Post Posted: Sun Jan 17, 2021 7:58 am
Last edited by 8BitBoy on Wed Mar 17, 2021 2:14 pm; edited 1 time in total
eruiz00 wrote
It was a known ( by me) bug... I tryed to fix it but i see i did not it at all. Shame on me.


Thanks. I restarted and was more careful this time. I kicked his ass. Thanks.

Is there a way to get more lives on the console version (like emulation)? Or can you access menu on the console version?
  View user's profile Send private message Visit poster's website
  • Joined: 05 Sep 2013
  • Posts: 3763
  • Location: Stockholm, Sweden
Reply with quote
Post Posted: Mon Jan 18, 2021 11:25 am
eruiz00 wrote
had to replace two lines (a dot before "db")


oh right. sorry.
  View user's profile Send private message Visit poster's website
  • Joined: 05 Jan 2006
  • Posts: 373
  • Location: USA
Reply with quote
Post Posted: Sat Feb 06, 2021 10:17 am
Has the game had more tweaks and fixes?
This is probably my favorite of all SMS Homebrew titles and I'd love to see it get more attention. I offered to do the English translation back in the day, but unfortunately, someone who..er.. doesn't have the best command of the language was selected.

Would love to see this great game with an improved translation and bug fixes some day... happy to donate towards that goal!
  View user's profile Send private message Visit poster's website
  • Joined: 06 Apr 2015
  • Posts: 89
Reply with quote
Post Posted: Sat Feb 06, 2021 3:46 pm
segasonicfan wrote
Has the game had more tweaks and fixes?
This is probably my favorite of all SMS Homebrew titles and I'd love to see it get more attention. I offered to do the English translation back in the day, but unfortunately, someone who..er.. doesn't have the best command of the language was selected.

Would love to see this great game with an improved translation and bug fixes some day... happy to donate towards that goal!


Again, it's too bad that you don't like the dialog that I provided, but I don't see how sniping at other people's efforts is going to endear you to the homebrew community. As I explained to you the first time you came around moaning, there might be technical limitations you're not aware of when it comes to the in-game text. Beyond that, there is the matter of style and tone which is purely subjective. That's hard for you to understand, so you've concocted this alternate explanation of your own ("command of the English language") which is basically just insulting, and seemingly intentionally so. Makes you seem like you'd be a really fun teammate to work with.

I discussed some suggested tweaks to the dialog with eruiz via email prior to the original release ~ those could still be used for an update, but ultimately it's up to eruiz. As for you, my advice is that you'll go farther working toward your own accomplishments than you will trying to tear down others.
  View user's profile Send private message
  • Joined: 05 Jan 2006
  • Posts: 373
  • Location: USA
Reply with quote
Post Posted: Sat Feb 06, 2021 4:02 pm
Centrale wrote
segasonicfan wrote
Has the game had more tweaks and fixes?
This is probably my favorite of all SMS Homebrew titles and I'd love to see it get more attention. I offered to do the English translation back in the day, but unfortunately, someone who..er.. doesn't have the best command of the language was selected.

Would love to see this great game with an improved translation and bug fixes some day... happy to donate towards that goal!


Again, it's too bad that you don't like the dialog that I provided, but I don't see how sniping at other people's efforts is going to endear you to the homebrew community. As I explained to you the first time you came around moaning, there might be technical limitations you're not aware of when it comes to the in-game text. Beyond that, there is the matter of style and tone which is purely subjective. That's hard for you to understand, so you've concocted this alternate explanation of your own ("command of the English language") which is basically just insulting, and seemingly intentionally so. Makes you seem like you'd be a really fun teammate to work with.

I discussed some suggested tweaks to the dialog with eruiz via email prior to the original release ~ those could still be used for an update, but ultimately it's up to eruiz. As for you, my advice is that you'll go farther working toward your own accomplishments than you will trying to tear down others.


Eeks, sounds like my comments are being taken pretty personally here.

Perhaps there is some loss of tone here, but nothing I said was meant as a "snipe." I've been part of this community for a long time and I have no ill-will towards anyone here.

I'm just hoping for a better translation is all. My post was meant to encourage further development, like when Street Fighter II grew info Street Fighter Championship Edition and such. "patches" as the kids say these days. Nothing was meant to put you or anyone down, although I can see how my choice of words wasn't the best. Sorry about that.
  View user's profile Send private message Visit poster's website
  • Joined: 28 Jan 2017
  • Posts: 549
  • Location: Málaga, Spain
Reply with quote
About Translation Fixes
Post Posted: Wed Feb 10, 2021 12:31 pm
Ummm.... if someone is interested and write me, i could send the source code with all the strings and recompile the game.

Also, if someone is interested, i could send the graphic sets and or music files to make a better version of the game. It is easy as the banks references are automatic thanks to the header files generated.

Also, if someone knows where it is, could send a image of the secret club where the ending princess works on free time :0

For now i am working on new project, like i said, but, maybe, i should make some rework on silvervalley, with better effects, dialogs, scripts, more minigames, etc. Who knows!

Galactic revenge is perfect, i think :)
  View user's profile Send private message
  • Joined: 28 Jan 2017
  • Posts: 549
  • Location: Málaga, Spain
Reply with quote
About new game
Post Posted: Wed Feb 10, 2021 12:37 pm
In fact, in the new game one mini game will be "Copper Valley"

(Just for fun)
coppervalley.png (1.69 KB)
coppervalley.png

  View user's profile Send private message
  • Joined: 15 Aug 2019
  • Posts: 258
  • Location: Lancashire UK
Reply with quote
Post Posted: Wed Mar 17, 2021 2:20 pm
eruiz00 wrote
In fact, in the new game one mini game will be "Copper Valley"

(Just for fun)


Wow, copper valley. That looks like a great idea. Is it a bit of an Easter Egg so to speak?

I really enjoyed playing this game but got to around stage 16 and got so stuck, I think there were like mermaid things jumping around, so hard. But there in lies the challenge. I should give it another go I guess. Git Gud, and all that.

Did anyone find out if there's a way (or a cheat) to get more hearts on the cartridge version yet? I'm playing with 3 hearts only. I see people on YouTube playing with 6 hearts.

Any help appreciated.
  View user's profile Send private message Visit poster's website
  • Joined: 12 Oct 2015
  • Posts: 183
  • Location: Ireland
Reply with quote
Post Posted: Sun Apr 30, 2023 6:57 pm
eruiz00 wrote
Ummm.... if someone is interested and write me, i could send the source code with all the strings and recompile the game.

Hi eruiz00 - I realize this thread is a little old but I would be interested in the source code for Silver Valley thanks!
  View user's profile Send private message Visit poster's website
Reply to topic



Back to the top of this page

Back to SMS Power!