shirisu / autopetitetcgscript Goto Github PK
View Code? Open in Web Editor NEWA simple and light script for a mini automated Trading Card Game (TCG).
License: MIT License
A simple and light script for a mini automated Trading Card Game (TCG).
License: MIT License
Could a puzzle gamle possibly be added? Like this one: https://github.com/cubiczx/html5_puzzle
System
PHP Version: 7.4
MySQL Version (or MariaDB Version, please specify): (e.g. MySQL 5.7.28) 5.1.1
autoPetiteTCGScript Version: 3.1.0
Browser and Version: I use chrome gx but it has happened to two different members as well
Other relevant information:
Describe the bug
If you accidently doubleclick a deck on the card update claim page it will give you two cards from that deck and breaks the card page so you can no longer see the other decks
Error-Messages
Got error messages? Put them here.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
it to only give one card from the deck and not break the page. to fix it I have had to delete the part where they had claimed anything from the decks so they got more cards then they should have.
Additional context
Add any other context about the problem here.
Please add the game "spinning wheel" from this page: http://dougtesting.net
Please adjust the card update page.
After selecting the carddecks the page is loaded again an the selected decks and textarea are on the bottom of the page - this should be on top to see it after the page reload.
Is your feature request related to a problem? Please describe.
Whenever new decks are released, there's always one or two that I want to add to my wishlist, so then I have to move away from the Card Update page to the decks pages to add them there.
Describe the solution you'd like
If the card update page had a button for each deck so you could add them to your wishlist, that would make it a smoother process.
Describe alternatives you've considered
N/A
Additional context
N/A
Wenn die Spieler aus unterschiedlichen Zeitzonen kommen, wäre es super, wenn die Zeitzonen bei der Ausgabe der Spiele beachtet wird. Evtl. sollte die Zeitzone auswählbar sein, damit es keine Probleme bei der allgemeinen Ausgabe gibt (letzter Login, news etc.)
Ich hab einfach als Auswahl eingebaut und dabei folgendes genommen:
<?php
$timezone_identifiers = DateTimeZone::listIdentifiers();
for ($i=0; $i < 425; $i++) {
echo "<option value='$timezone_identifiers[$i]'>$timezone_identifiers[$i]</option>";
}
?>
Ich würde gerne das unendliche Mastern von Decks möglich haben :D Eventuell als Auswahl ja/nein, um es entsprechend anzupassen.
Ich wollte mal fragen ob es möglich wäre eine Default bei der Bildquelle angabe zu machen.
Den jede angabe wird als 1, 2, 3 usw... angeben via Link.
Und da ich viele Bilder direkt selbst Screen und es dafür so gesehen auch keine Quelle gibt. Das eben wenn ich keine Eintrage eine Default ansicht erscheint.
z.B. Screencaps by DeckMaker oder sowas.
In der Datei tcg/trade/trade_offer.php ist in Zeile 200 die URL für die Karte für das change event.
document.querySelector('.own-card').style.backgroundImage = 'url(<?php echo HOST_URL; ?>/assets/cards/'+ own_card_carddeck_name +'/'+ own_card_carddeck_name+own_card_number +'.<?php echo TCG_CARDS_FILE_TYPE; ?>)';
Diese wird jedoch mit dem direktlink /assets/cards/ ausgelesen - den Pfad legt man in der config fest und müsste hier angepasst werden (:
Ich fände eine Keep Funktion für Karten die man erst später sammeln möchte und noch nicht in die Collect packen will ganz cool. Ich bin zum Beispiel jemand der nicht gerne alles gleich in die Collect schiebt wenns nur eine Karte ist :D
It should be easier to see the needed cards also in the dropdown of the trade page.
When I wanted to create an admin account, it gives me "Field 'member_timezone' doesn't have a default value", and I don't know where it's coming from.
Ich würde mir wünschen, dass man nicht nur Random sondern auch gezielte Karten vergeben könnte :)
Ein weiterer Wunsch wäre einen extra Filler für Puzzle hochladen zu können, somit könnte man das Design für beide Filler unterschiedlich anpassen :)
Im Shop wird nach dem Kauf ein echo $_POST['cardshop']; ausgegeben und die richtige Ausgabe. Das echo muss raus. Übrigens wäre es auch super, wenn die Ausgabe vom Shop in der function.php nicht im plaintext ist, sondern in einer alert_box oder so :)
pfad: /tcg/memberarea/memberarea_shop.php
zeile: 38
if (isset($_POST['cardshop'])) {
echo $_POST['cardshop'];
buy_card($_SESSION['member_id'], $_POST['cardshop']);
}
There should be a setting that the carddecks could be displayed for not logged in users.
System
PHP Version: any
MySQL Version (or MariaDB Version, please specify): any
autoPetiteTCGScript Version: 1.0.1
Browser and Version: any
Describe the bug
The routing doesn't work if the project runs in a sub directory.
To Reproduce
Put the project in a sub directory (e.g. localhost/tcg)
Expected behavior
It should work.
Bei einer neuen Nachricht steht in Zeile 138 - 143
$sql_member = "SELECT member_id, member_nick
FROM member
WHERE member_active = 1
AND member_id != '" . $member_id . "'
LIMIT 1";
$result_member = mysqli_query($link, $sql_member) OR die(mysqli_error($link));
das LIMIT 1 muss raus, damit die komplette Liste ausgegeben wird :*
Wenn ein Tauschangebot abgelehnt wurde, steht im Log noch (von dir), statt der Name.
Und im selben Zug wäre es super, wenn die Namen im Log verlinkt wären, also der Tauschpartner :)
System
autoPetiteTCGScript Version: 3.0.0
Browser and Version: all mobile devices or views
Describe the bug
The sections on the trade offer page in the mobile view are not comfortable. The collection list should be shown over the dropdown so while searching for a card the overlay of the dropdown don't hide the list. Maybe also the other sections should be in top (maybe also to hide it on click).
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The sections are good to access in mobile view.
Ich hätte gerne im Postfach ein Button mit "Alle Nachrichten löschen" (also gelesene und ungelesene) um die Systemnachrichten löschen zu können.
Es wäre cool wenn man bei den News (ausgewählte oder Random) Cards aus dem letzten Cardupdate anzeigen lassen könnte :)
System
PHP Version: 7.4
MySQL Version (or MariaDB Version, please specify): (e.g. MySQL 5.7.28) 5.1.1
autoPetiteTCGScript Version: 3.20
Browser and Version: Oprea GX
Other relevant information:
Describe the bug
On a fresh install of the script on the keep page the option to add a deck to collecting is gone.
Error-Messages
Got error messages? Put them here.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
collecting to show up. I fixed it on my tcgs by changing this line: <?php if ($hide_collect == false) { ?>
to <?php if ($hide_collect == true) { ?>
Additional context
Add any other context about the problem here.
Es wäre toll, wenn es die Möglichkeit gibt, doppelte Karten aus dem Trade gegen eine random Karte einzutauschen (1:1) <3
Im "Merge pull request #45 from Shirisu/feature-adjust-show-cards-in-games" hast du bei
inc/translations/en.php
'text_level_up' => 'Level up',
'text_level_up_reward' => 'Deine Belohung',
eingebaut. Müsste dann englisch sein, "Your reward"
Könntest du es bitte einbauen, dass man in den Profileinstellungen auswählen kann, wie man seine Masters anzeigen lassen möchte.
Wunsch einer Schülerin: Die Masters nach Datum, statt nach dem Alphabet sortiert anzeigen lassen
Ich wünsche mir einen Shop mit zufälligen Karten, die sich einmal pro Tag ändern und mit der eingestellten Währung kaufbar sind. Dabei sollte man die Menge der Karten (also z.B 8 im Shop oder 12 etc.), sowie die Preisspanne einstellbar sein. :) <3
Ich würde gerne die Startseite etwas anders haben, im generellen.
Bisher werden nur die News angezeigt.
Aber das würde die Startseite etwas auffrischen und die Leute würden sehen, worum es geht :)
Es wäre echt super wenn man einen WYSIWYG Editor in die News bauen könnte bzw. die üblichen Befehle wie und mit einbinden könnte :)
Ich hätte gerne eine Nachricht, sobald eine gestellte Tauschanfrage angenommen oder abgelehnt wurde. Cool wäre natürlich mit einer kleinen Nachricht, damit man bei abgelehnt dann schreiben kann "GA kommt" oder sowas in der Art (:
Ich würde gerne Unterkategorien löschen kann. Falls man mal aufräumt und die Kategorie nutzlos wird, muss man sie direkt in der Datenbank löschen <3
Wenn zb bei einem Spiel Karten gewonnen werden, beim level up oder mastern etc. ist in der funktion "'insert_cards" der update "member_cards" in der for-schleife. Daher wird der so oft ausgeführt, wie man karten erhält und das sorgt für mehr Karten in der Profilanzeige, als man eigentlich hat. :)
There should be the possibility to select the rewards for the games in the settings.
A keeping section would be nice if it's not too difficult to change. for all those decks people don't want to collect quite yet or want to hoard
Wird man automatisch ein Level zurückgesetzt, wenn man Karten verliert und unter die Grenze rutscht?
Für die Zukunft wäre es eventuell gut, wenn man x Karten gegen 1 random Karte eintauscht - dann wäre das erneute Leveln eher kontra produktiv :D
"Needed cards" should be highlighted in the shop.
Not sure how or if this could work but would it be possible to add a tag feature for decks?
For example, a book/tv show/movie/etc has sometimes many genres that it fits it. It would be cool to be able to make tags and select all the ones that apply to that said book/tv show/movie/etc for members to be able to click and narrow a search.
Wenn ich eine Karte in Keep habe, dann wird diese Karte trotzdem als benötigt angezeigt:
Die doppelte Karte wird dann unter new angezeigt und ich habe sie in Keep. Dann müsste sie ja eig. als "trade" selektiert werden?
Es wäre cool wenn man die Lucky Kategorie Games entweder selbst aktivieren oder deaktivieren könnte oder was auf jedenfall super wäre, falls in der Kategorie keine Cardsets aktiv sind, dass das Lucky Game ansich ausgeblendet wird, sonst hat man nur eine leere Seite.
Super wären Einstellungsmöglichkeiten, nach wieviel Stunden der Shop aufgefüllt werden soll (aktuell 24 fest) und ob der Shop sich füllen soll, wenn eine Karte gekauft wurde. Also Endloskauf möglich ja/nein :)
Nach dem Fix (:P) erhält man nach einer Registrierung keine E-Mail. Ich habe es mit meiner gmx.net Adresse ausprobiert und eine Freundin von mir mit einer gmail.com Adresse. Eingetragen werden die Member in der Datenbank und auch der Aktivierungscode wird erzeugt, nur die Email kommt nicht an.
I just downloaded the 2.0.0 version, edited the two inc files and uploaded them to my directory. Imported the tables and made the admin account just fine. However, when I go to the every single page logged out and logged in, and in the admin section, EVERYTHING show as "T". I haven't changed any coding in any way, so im not sure what's happening here. Screen shot added!
Ich wollte gerade das Memory Spiel nochmal ausprobieren und fand mich in einem Endlos Ladeprozess wieder. Leider kann ich nicht sagen woran es liegt.
Gestern hatte ich noch keine Cardsets hochgeladen und ich konnte das Spiel ohne Probleme aufrufen bis ich darauf aufmerksam gemacht habe und eine "Du hast noch nicht genug Karten hochgeladen, also geht das Spiel noch nicht" Sperre eingebaut wurde :D
Hochgeladen wurden heute 3 Cardsets mit je 16 Karten.
Wenn ich die Endlos Lade Schleife abbreche, also die Seite anhalte erhalte ich folgenden Screen:
Please add the game "missing word" from this page: https://gist.github.com/arbianchi/86845f37ad11e25138dc0fd6735d878a
Describe the solution you'd like
It would be nice if by default it would have a link that would display all uploaded decks that have not been released to the members.
System
autoPetiteTCGScript Version: 3.0.0
Describe the bug
Seems that the sorting of dates don't work like it should. It's not sorting year > month > day - it's sorting the text in the column.
Expected behavior
The dates are sorted correctly.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.