Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
buzzibaer committed Jun 3, 2023
2 parents 7df17f9 + 434c35d commit 692baa9
Show file tree
Hide file tree
Showing 6 changed files with 136 additions and 13 deletions.
70 changes: 70 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: [ main ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ main ]
schedule:
- cron: '38 6 * * 5'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'csharp' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at https://git.io/codeql-language-support

steps:
- name: Checkout repository
uses: actions/checkout@v2

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
69 changes: 56 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,18 @@ The idea ist that if i am going to load up a specific pinball table the fan has

So if you going to load up the table "DarkPrinzess" a topper video is shown on the fan for ambiente purposes.


## What does it do?
This small cluecode application is getting a pinball table and is than selection a corresponding pic / vid on the 3d holografic fan.

If you want to see it in action look here = https://youtu.be/gSEaMVhVHcs or here https://youtu.be/rK_Xfbv4QXQ

Or an update video with rom / pup events integration = https://youtu.be/YnqAcIEPP1M

## How does it work?
You can add this to your PupPack Folder for VPX.
It will then select a specific vid / pic on your fan for this table

## The Fan
I bought this device here: [AliExpress Link] (https://de.aliexpress.com/item/4000579865125.html?spm=a2g0s.9042311.0.0.659e4c4dMc6T5K)

Expand Down Expand Up @@ -52,22 +64,30 @@ I bought a cheap usb wlan dongle for my cab windows pc and attaced this dongle e
Configuration of FAN and Dongle is described below.


## What does it do?
This small cluecode application is getting a pinball table and is than selection a corresponding pic / vid on the 3d holografic fan.

If you want to see it in action look here = https://youtu.be/gSEaMVhVHcs or here https://youtu.be/rK_Xfbv4QXQ

## How does it work?
You can add this to your PupPack Folder for VPX.
It will then select a specific vid / pic on your fan for this table

## My PC will not connect automaticly to the FAN! Help!
Yes, this is happening due to the FAN will propagate a public WLAN.
Windows 10 will not connect automaticly to public wlan, even if autoconncet is enabled.
See:
![explain pic](https://github.com/buzzibaer/FanPlugin.Wrapper/blob/main/docmedia/install4.png)
> ![explain pic](https://github.com/buzzibaer/FanPlugin.Wrapper/blob/main/docmedia/install4.png)
Source = https://appuals.com/windows-10-will-not-connect-to-wifi-automatically/

## How to sort my files on the SD-Card / Problems with selection of file IDs

The files on the SD card of your fan have to be unique and identified by the program.

To avoid pitfalls, i recomend to go for a strict sort order.

The FAN itself trys to sort the filenames bitwhise and alphabeticly.

To keep a strict order i recommend to use 6 characters with numbers only.

Example = 000001.bin

Trailing zeros are neccassary due to bytewhise comparison.

![explain pic](https://github.com/buzzibaer/FanPlugin.Wrapper/blob/main/docmedia/install11.png)

## How to install

### Reg DLL
Expand All @@ -83,11 +103,12 @@ find RegAsm.exe from your latest .NET on your Computer
![explain pic](https://github.com/buzzibaer/FanPlugin.Wrapper/blob/main/docmedia/install7.png)


Go into your command and register the DLL like:
Go into your folder were your dll is.
Open up a command shell command and register the DLL like:

![explain pic](https://github.com/buzzibaer/FanPlugin.Wrapper/blob/main/docmedia/install8.png)

'''bash
'''
C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe FanPlugin.Wrapper.dll /codebase
'''

Expand All @@ -100,4 +121,26 @@ Edit the Script for the bin file you want to select on your fan.

![explain pic](https://github.com/buzzibaer/FanPlugin.Wrapper/blob/main/docmedia/install9.png)

Enjoy!
configure evnets for changing videos

![explain pic](https://github.com/buzzibaer/FanPlugin.Wrapper/blob/main/docmedia/install10.png)


### Ho to configure events

The easiest way is to have a look into the events from any Puppack.
There you can see what is already defined as events.
Get your information from there:
![explain pic](https://github.com/buzzibaer/FanPlugin.Wrapper/blob/main/docmedia/install12.png)

If you want to learn more about events of tables, you can always find them in Nailbusters documentation right here = https://www.nailbuster.com/wikipinup/doku.php?id=pup_capture

## Problems?

### Standalone UI

I made a little Standalone UI for testing the Fan without anything else but just the fan.

Have a look here >> https://github.com/buzzibaer/FanPlugin.Test/releases

With that you can experiment if the funktions work well.
Binary file added docmedia/install10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docmedia/install11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docmedia/install12.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions pupscript/pupscript_js.pup
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,15 @@
function GetEvent(eType, eIndex, eValue) {
//var myMsgBox=new ActiveXObject("wscript.shell");
//myMsgBox.Popup (eType +" "+ eIndex +" "+ eValue);

if (eIndex == 7 && eType == "D" && eValue == 1) {
var fan = new ActiveXObject("FanPlugin.Wrapper.Fan");
fan.playVideoWithId(5);
};

if (eIndex == 0 && eType == "D" && eValue == 1) {
var fan = new ActiveXObject("FanPlugin.Wrapper.Fan");
fan.playVideoWithId(6);
};
}

0 comments on commit 692baa9

Please sign in to comment.