Limaru-Minecraft / iciwi

Universal transport ticket plugin
MIT License
5 stars 0 forks source link

Implement trip logger #27

Closed Mineshafter61 closed 9 months ago

Mineshafter61 commented 2 years ago

maybe implement it as a thing within Iciwi's SQL?

Mineshafter61 commented 1 year ago

Ok im changing things up a bit and implementing this as a CSV

Which format do you prefer:

The first will be easier to code but harder to read, the second will be harder to code but can get very long.

Also should fare gates log every entry and exit, or only on exit?

Mineshafter61 commented 1 year ago

Enhancement: the trip logger should update its stats onto a webpage as well

Mineshafter61 commented 1 year ago

Instead of fumbling around with formats, I think it'll be better if I listed every single type of transaction here and see how to sort them.

Each entry will have a unique key made up of the timestamp and username, and each access point to the list (each entry will be stored in a huge list) will need to call this unique key. Therefore each access point is their own list of these keys.

Ticket machines

New ticket

Top Up

Refund

New Railpass

New Ticket

Faregates

Entry (normal, card)

Exit (normal, card)

Entry (transfer, card)

Exit (transfer, card)

Entry (ticket)

Exit (ticket)

winsanmwtv commented 1 year ago

In case if buy ticket for other person? (like keyable username if 1-time tickets)

Mineshafter61 commented 1 year ago

@Phongsiri33013Winsan2020TH if you buy a ticket for another person it'll still be counted as your purchase, but if they used the ticket their faregate entry will have their name listed.

Mineshafter61 commented 1 year ago

I think one feature we can consider is adding serial numbers to tickets

muffinbarde commented 1 year ago

@Mineshafter61 If you could send simple website pings imaginethisisawebsite.com/somerandompath/?i=[and here information in a format you decide] I could do the website overview for you - for me it currently is hard to do something in-game (laptop only) but web dev I can do - let me know if you would want something like this or not

Mineshafter61 commented 1 year ago

@muffinbarde that would greatly help, thanks!

BTW i also only have a laptop but Vim is my go-to IDE, therefore I'm not affected by performance just as much when coding. If you're open to IDE suggestions, I suggest trying out Helix.

muffinbarde commented 1 year ago

@Mineshafter61 Thx for the suggestions; for me it's rather that I can't not try out what I coded without a mouse because playing the game without it is soo difficult and unpleasent. So I still have to wait for my mouse to arrive. Just write me on Discord once you need my help.

Mineshafter61 commented 10 months ago

Milestones: