Author |
Message |
Gimli
|
Post subject: Re: MEDIEVAL MADNESS Update Posted: Wed Sep 20, 2017 11:10 am |
|
Joined: Mon Jan 27, 2014 12:36 pm Posts: 2857 Location: Ontario, Canada
|
So you would have 30 arrays or so? Whatevergameevent(currentplayer)
I do a similar thing but have all events stored in a single array ArrayA(currentplayer),
This is essentially what you have done,but I take all of your current player variables and assign them each a position in a enveloping overarching array
At the same time I enable save game states, by converting ArrayA(player1) to a String(Player1) And assign to nvS1 etc....
|
|
 |
|
 |
Flug
|
Post subject: Re: MEDIEVAL MADNESS Update Posted: Wed Sep 20, 2017 12:04 pm |
|
Joined: Mon Sep 18, 2017 3:49 pm Posts: 38 Location: Chicago, USA
|
Gimli wrote: So you would have 30 arrays or so? Whatevergameevent(currentplayer)
I do a similar thing but have all events stored in a single array ArrayA(currentplayer),
This is essentially what you have done,but I take all of your current player variables and assign them each a position in a enveloping overarching array Hey there. Yeah, you're correct. There are a bunch of 4 element arrays. Your approach sounds good too if I understood you correctly. So, you have one 4 element array. Code: Dim OutsideArray(4) Dim InnerArray(50) ' Assuming 50 events
' Or in 1 Line Dim OutsideArray(4, 50) So using it would be like: Code: Const cBonusLit = 1 Const cBallsLeft = 2 Const cScore = 3
Dim OutsideArray(4) Dim Player1Array(50) Dim Player2Array(50) ' through 4...
Player1Array(cBonusLit) = TRUE Player1Array(cBallsLeft) = 2 Player1Array(cScore) = 50250
OutsideArray(1) = Player1Array I actually like this way better (assuming I'm on the correct path...): Code: Dim OutsideArray(4, 50) OutsideArray(1, cBonusLit) = TRUE OutsideArray(1, cBallsLeft) = 2 OutsideArray(1, cScore) = 50250 ' ... OutsideArray(CurrentPlayer, cBonusLit) = (OutsideArray(CurrentPlayer, cBallsLeft) > 2)
Is that correct? It's almost like having a bitmask per player. I like the idea of saving state; that's a big win for those that want that functionality. Thank you for sharing!
_________________ --flug
|
|
 |
|
 |
Gimli
|
Post subject: Re: MEDIEVAL MADNESS Update Posted: Wed Sep 20, 2017 12:46 pm |
|
Joined: Mon Jan 27, 2014 12:36 pm Posts: 2857 Location: Ontario, Canada
|
Your coding knowledge is More advanced than mine But essentially your understanding is correct Dim ArrayA(4) Then I copy and paste an Array template by Wecoc that defines how the array is processed, allowing for 99 events within But, because I am converting to Strings for save states, and saving to nvS1-16 , and each nvS only allows 32 numbers, my array is constrained from 99 to 32. To confuse you even more, Ravarcade Gave me a code to allow two strings to be compressed into one nvS 
|
|
 |
|
 |
Gimli
|
Post subject: Re: MEDIEVAL MADNESS Update Posted: Wed Sep 20, 2017 12:51 pm |
|
Joined: Mon Jan 27, 2014 12:36 pm Posts: 2857 Location: Ontario, Canada
|
Saving states also has the potential to double the events you want saved! Depending if a save state saves only at the beginning or end of a turn or during play in the middle of multi ball or a mini game
Last edited by Gimli on Wed Sep 20, 2017 5:25 pm, edited 1 time in total.
|
|
 |
|
 |
Gimli
|
Post subject: Re: MEDIEVAL MADNESS Update Posted: Wed Sep 20, 2017 12:54 pm |
|
Joined: Mon Jan 27, 2014 12:36 pm Posts: 2857 Location: Ontario, Canada
|
If you download the dark knight ultimatum it has my most advanced save states where you can save and restore during mini Games
|
|
 |
|
 |
Gimli
|
Post subject: Re: MEDIEVAL MADNESS Update Posted: Wed Sep 20, 2017 7:31 pm |
|
Joined: Mon Jan 27, 2014 12:36 pm Posts: 2857 Location: Ontario, Canada
|
Sorry to blather on Flug, it was great therapy. By all means release your mod !
|
|
 |
|
 |
Flug
|
Post subject: Re: MEDIEVAL MADNESS Update Posted: Wed Sep 20, 2017 9:29 pm |
|
Joined: Mon Sep 18, 2017 3:49 pm Posts: 38 Location: Chicago, USA
|
Gimli wrote: Sorry to blather on Flug, it was great therapy. By all means release your mod ! Heh, no worries at all. I actually took the code base and modified it to use a multidimensional array like you mentioned (and I mocked up before). Need to do more testing, but so far it seems to have been a clean transition. Once it's solid (I swear every time I have a good game I come across something...) I will upload. Thanks for the messages; really appreciate the conversation.
_________________ --flug
|
|
 |
|
 |
Gimli
|
Post subject: Re: MEDIEVAL MADNESS Update Posted: Wed Sep 20, 2017 10:44 pm |
|
Joined: Mon Jan 27, 2014 12:36 pm Posts: 2857 Location: Ontario, Canada
|
Cool Thx and good luck!!! Welcome to FP!
|
|
 |
|
 |
gibsmedat
|
Post subject: Re: MEDIEVAL MADNESS Update Posted: Sun Oct 08, 2017 9:53 pm |
|
Joined: Thu Jun 16, 2016 2:20 pm Posts: 132 Location: a cave
|
The last version of MM available from SLAM was v1.02. I changed a few graphics as seen in my abandon thread and uploaded it to http://www97.zippyshare.com/v/jgL8BdRU/file.htmlIf you fixed some stuff in the script I am always interested, but you should probably use the 1.02 version as base. The physics on that one are 2.7. Maybe post the script changes here when you're done? I'd appreciate that. the last changes as per his script were ' ULTIMATE Edition 1.02: ' improved all lighting effects ' fixed a few bugs ' improved geometry
_________________ life takes a lot of balls
|
|
 |
|
 |
GeorgeH
|
Post subject: Re: MEDIEVAL MADNESS Update Posted: Sun Oct 08, 2017 11:09 pm |
|
Joined: Thu Aug 16, 2012 11:12 pm Posts: 2520 Location: Arkansas, USA
|
|
 |
|
 |
|