(Topic ID: 269190)

Stars 2020 - new code for Stern Stars (1978)

By DickHamill

3 years ago


Topic Heartbeat

Topic Stats

  • 525 posts
  • 74 Pinsiders participating
  • Latest reply 13 days ago by DickHamill
  • Topic is favorited by 89 Pinsiders

You

Linked Games

  • Stars Stern Electronics, 1978

Topic Gallery

View topic image gallery

StempleLABS - Stars 2021 BSOS Sound system (resized).png
2 (resized).png
1 (resized).png
3 (resized).png
4 (resized).png
614CF2ED-B46E-4A7A-BA95-4E55D4EACFE7 (resized).jpeg
Stars 2021 - Overview Sheet (resized).png
WT Flasher Screenshot (resized).png
CH341a SPI mode to WAV trigger (resized).png
WAV trigger programmer (resized).JPG
Stern Stars Cards (resized).JPG
pasted_image (resized).png
Wiring rev5 (resized).png
b275c2cdb42ad1f14d3485afc58b80fdb5c3509c (resized).jpg
pasted_image (resized).png
20E4B30C-E4A5-4B79-A3BE-BB30EA4A55EA (resized).jpeg

You're currently viewing posts by Pinsider gdonovan.
Click here to go back to viewing the entire thread.

#438 2 years ago

Question- I'm trying to compile and verify files under Windows 7 and 8 utilizing 1.8.14 and 1.8.15 (stand alone) with no luck whatsoever. I get errors when compiling and have not managed to figure this out. I can write the compiled file to the nano and it works till it gets to the section that sketch indicates isn't right.

What setups are people using to verify and compile? I'm going to try Windows 10 Pro at work tomorrow.

#440 2 years ago
Quoted from BJM-Maxx:

Try compiling one of the other BSOS games, do any of them work? You can also power up your machine into Attract mode with the wrong game code installed without any issues.

1) Tried Black Jack, also warning messages as well but related to maximum number of lamps.

2) Currently working on a Flash Gordon, attract mode is fine but there is a wizard mode in the game that is clearly broken and the warning messages reflect errors in compiling that section.

I'm going to try compiling on a Win10 machine at work this morning. I'm curious what other people are using to compile.

No luck under Win10 with installed or thumbdrive version.

#442 2 years ago
Quoted from DickHamill:

I'm on a Mac. I tried compiling with 1.8.13 and 1.8.15, verbose compiler settings, no warnings or errors for Stars2020 or BlackJack2020.
In case you can spot anything helpful, here is my compile log for BlackJack2020 on 1.8.15:

Process of what I'm doing this morning.

1) Downloaded and installed 1.8.15 under Windows 10.
2) Downloaded FG2021.zip from github, unzipped to FG2021 folder.
3) Launched "C:\Program Files (x86)\Arduino\arduino.exe"
4) File-> Open -> FG2021.INO
5) Sketch -> Verify/Compile

Here is error list from Flash Gordon-

G:\nano\bsos-flash-gordon-2021-main_june\bsos-flash-gordon-2021-main\FG2021\FG2021.ino: In function 'int WizardMode(boolean)':
G:\nano\bsos-flash-gordon-2021-main_june\bsos-flash-gordon-2021-main\FG2021\FG2021.ino:2513:53: warning: return-statement with no value, in function returning 'int' [-fpermissive]
if (bonusFireworks<0 || bonusFireworks>9) return;
^~~~~~
G:\nano\bsos-flash-gordon-2021-main_june\bsos-flash-gordon-2021-main\FG2021\FG2021.ino:2487:68: warning: iteration 60 invokes undefined behavior [-Waggressive-loop-optimizations]
BSOS_SetLampState(AttractLampsMingAttack[lightcountdown].lightNumMingAttack, (dist<8), (dist==0/*||dist>5*/)?0:dist/3, (dist>5)?(100+AttractLampsMingAttack[lightcountdown].lightNumMingAttack):0);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
G:\nano\bsos-flash-gordon-2021-main_june\bsos-flash-gordon-2021-main\FG2021\FG2021.ino:2485:51: note: within this loop
for (byte lightcountdown=0; lightcountdown<NUM_OF_ATTRACT_LAMPS_MING_ATTACK; lightcountdown++) {
G:\nano\bsos-flash-gordon-2021-main_june\bsos-flash-gordon-2021-main\FG2021\FG2021.ino: In function 'WizardMode':
G:\nano\bsos-flash-gordon-2021-main_june\bsos-flash-gordon-2021-main\FG2021\FG2021.ino:2487:68: warning: iteration 60 invokes undefined behavior [-Waggressive-loop-optimizations]
BSOS_SetLampState(AttractLampsMingAttack[lightcountdown].lightNumMingAttack, (dist<8), (dist==0/*||dist>5*/)?0:dist/3, (dist>5)?(100+AttractLampsMingAttack[lightcountdown].lightNumMingAttack):0);
^
G:\nano\bsos-flash-gordon-2021-main_june\bsos-flash-gordon-2021-main\FG2021\FG2021.ino:2485:51: note: within this loop
for (byte lightcountdown=0; lightcountdown<NUM_OF_ATTRACT_LAMPS_MING_ATTACK; lightcountdown++) {
^
Sketch uses 26324 bytes (81%) of program storage space. Maximum is 32256 bytes.
Global variables use 1341 bytes (65%) of dynamic memory, leaving 707 bytes for local variables. Maximum is 2048 bytes.

#445 2 years ago
Quoted from DickHamill:

I've sent this link to bluebomber - these warnings seem to be happening on some compilers and not others for some reason.
I can reproduce these FG warnings, but I can't get any warnings for BlackJack2020 or Stars2020

Thank you for checking, been banging my head against the wall trying to figure out what I had been doing wrong. My first foray into Nano programming so far has not been smooth but I'll stick with it for a bit.

#447 2 years ago
Quoted from Robotworkshop:

Try downloading one of the other sets like Meteor 2021, put in all in a Meteor2021 directory with the most recent BSOS files and try building that. At least if you get one of the games to build cleanly then you know your setup is ok. You can just do the check to start and then you can try to upload it after. No worries about sending the Meteor code. You can over write it with the FG code once you are able to build that cleanly too.

I had no problem compiling and verifying the Stars2020 code.

1 month later
#450 2 years ago
Quoted from DickHamill:

Yes - there will be! The code is finished. I'll get it on GitHub soon and post a link here. The only audio support included is for Wav Trigger (I didn't do a chimes version).

I'm considering trying to pickup this route and do code and wave trigger for Star Trek.

Promoted items from Pinside Marketplace and Pinside Shops!
$ 9.00
Cabinet Parts
Third Coast Pinball
 
$ 55.00
Displays
PinballSolutions.eu
 
$ 29.00
Boards
RoyGBev Pinball
 
From: $ 30.00
Cabinet Parts
Rocket City Pinball
 
$ 169.00
Wanted
Machine - Wanted
St. Louis, MO
$ 29.00
Boards
RoyGBev Pinball
 
$ 199.95
$ 12.00
Playfield - Toys/Add-ons
UpKick Pinball
 
From: $ 130.00
Boards
Troxel Repair
 
From: $ 50.75
Playfield - Other
Rocket City Pinball
 
From: $ 115.00
Playfield - Protection
Beehive Pinball Co.
 

You're currently viewing posts by Pinsider gdonovan.
Click here to go back to viewing the entire thread.

Reply

Wanna join the discussion? Please sign in to reply to this topic.

Hey there! Welcome to Pinside!

Donate to Pinside

Great to see you're enjoying Pinside! Did you know Pinside is able to run without any 3rd-party banners or ads, thanks to the support from our visitors? Please consider a donation to Pinside and get anext to your username to show for it! Or better yet, subscribe to Pinside+!


This page was printed from https://pinside.com/pinball/forum/topic/stars-2020-new-code-for-stern-stars-1978?tu=gdonovan and we tried optimising it for printing. Some page elements may have been deliberately hidden.

Scan the QR code on the left to jump to the URL this document was printed from.