Mathilde411 / bperipherals

https://www.curseforge.com/minecraft/mc-mods/bperipherals
Other
7 stars 5 forks source link

[FEATURE] Allow to get mag card data and write new on the same swipe. #5

Closed IvoLeal72 closed 3 years ago

IvoLeal72 commented 3 years ago

It would be cool if the mag_write event would return the data previously on the card or both 'mag_swipe' and 'mag_write' events fired. I know this feels useless, and can easily get worked arround, but i wanted to register how many times the card was used, or for an one use ticket system, stored on the card. I'm the only one on my friends server that knwo how to use computercraft and this would make things easier than sharing info between computers to knwo that the card has been used.

Mathilde411 commented 3 years ago

It would be cool if the mag_write event would return the data previously on the card or both 'mag_swipe' and 'mag_write' events fired. I know this feels useless, and can easily get worked arround, but i wanted to register how many times the card was used, or for an one use ticket system, stored on the card. I'm the only one on my friends server that knwo how to use computercraft and this would make things easier than sharing info between computers to knwo that the card has been used.

Wow sorry, I didn't see the notification. I already thought about it, and I'm probably going to implement it.

Mathilde411 commented 3 years ago

@LoyaltyGamer72 Fixed with https://github.com/BastouP411/bperipherals/commit/5625ad87309daf0365ac57fd106f9eb6bcfc0e59

IvoLeal72 commented 3 years ago

Can you please publish or send me the compiled version with the update, I really need it for a system on my server 😊😊 I would compile too but I believe I need instructions on how to do it.

Mathilde411 commented 3 years ago

@LoyaltyGamer72 Sorry I do not have time yet to update it. Going through lots of exams. Ifr you want to build it yourself you'd have to run ./gradlew build

IvoLeal72 commented 3 years ago

Already tried in my ubuntu machine it errored, I will try on my windows machine and see if it works

IvoLeal72 commented 3 years ago

same error...

Downloading https://services.gradle.org/distributions/gradle-4.10.3-bin.zip .......................................................................... Unzipping C:\Users\ivogc.gradle\wrapper\dists\gradle-4.10.3-bin\31t79e2qsceia4mkbojplrgx\gradle-4.10.3-bin.zip to C:\Users\ivogc.gradle\wrapper\dists\gradle-4.10.3-bin\31t79e2qsceia4mkbojplrgx

Welcome to Gradle 4.10.3!

Here are the highlights of this release:

For more details see https://docs.gradle.org/4.10.3/release-notes.html

Starting a Gradle Daemon (subsequent builds will be faster)

Configure project : Java: 15 JVM: 15+36-1562(Oracle Corporation) Arch: amd64 New Dep: net.minecraftforge:forge:1.16.4-35.1.16_mapped_snapshot_20201028-1.16.3

FAILURE: Build failed with an exception.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/4.10.3/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 1m 14s

Mathilde411 commented 3 years ago

@LoyaltyGamer72 published on curseforge in last update !