Super Mine Kart

Post Reply
apercy
Member
Posts: 81
Joined: Wed Mar 25, 2020 16:31
GitHub: APercy
In-game: APercy
Location: Pinheiral - RJ - Brazil

Super Mine Kart

by apercy » Post

Hello!

Here I am again with another fresh mod. Now it's time to race! And a complete modpack! Welcome to the Super Mine Kart! It is a modpack with basically a kart and checkpoints.
But wait, how does it work? This revolves more around the checkpoint system, which I explain after the image.
I suggest you use a test map I made, it's zipped as karttest.zip
Unzip the karttest.zip file in the worlds folder of your minetest. But before running this map, make sure you have the following mods installed (only for this map, the modpack do not depend on it): basic_machines, basic_materials, moreblocks, racing, worldedit

Image

You have 2 icons with flags, one white, the other a green. And a fuel pistol plus a black and white flag item. The white flag is a start checkpoint. The green is a race checkpoint. If ou know where you start the grid line, put the start icon 10 blocks ahead (it has 10 blocks radius, you can punch it to see). When you click with right button and it show a dialog, you can set the previous checkpoint (I suggest you put "last" here, see ahead) and a number of laps (default 10). When you click on Update (yes, click on Update or it will not save), it changes the start parameters and the race_id (later I explain it).
Now you can place the green flags in strategic places of your track to prevent cheaters getting shortcuts. With the right click, it shows you a dialog where you name the checkpoint and tell's it the name of the previous one. If this is the first, you can name it as "check_01" or whatever and the previous as "start", so you inform it and click on Update. The next checkpoint you name it "check_02" or as you desire and tell it the previous was "check_01". Do it until you come to the last. I suggest you to name the last checkpoint simply as "last", as you informed the "start" checkpoint. Now your circuit is ready, you can place a car and run it. The first to complete all the laps configured at start checkpoint, his name will be saved in first place of a ten fields list. To reset the race and the list you use the status_restarter flag, the checker flag icon. Punch it against the start icon (white flags), the race_id will change and winners list cleaned. You can place the basic_machines keypad to reset the start checkpoint, just config the target node at your start icon location and set the text to send as "start".
If a single kart need to be reseted, punch it with the status_restarter (only works with kart, unless you copy the activation routine to your vehicle code)
When a car passes through the start checkpoint zone, it will check the race_id of that car. If it's different, the car status is reseted and automatically it's on a new race. In case it's the same race_id, the lap count is incremented until the race ending.
And the fuel? Well, your kart starts with no fuel. If you are not in a race or your car was reseted by the black white flag, you can put biofuel on it. You need to attach himself to the car with the right button and punch the car with the biofuel gallon. Ok. But when you are in a race, you can only refuel at a refuel zone, marked by the fuel pistol icon. This zones have a radius of 5 blocks. To refuel you need stop, turn the engine off and punch the gallon against the kart. So you turn engine running again and go to the victory... or not!

-- advanced:
-the start checkpoint can be configured to show it's text on another node, like a remote sign, just inform the relative coordinate in target msg fields and click "Set Message Target". So any update on infotext of the node will be replicated at the informed node position.
-the start display can be placed the same way.
-if using basic machines, you can set a keypad to start a race, just configuring to send the string "start" to start node location.

https://github.com/APercy/superminekart

If the github fails... get from here: https://mega.nz/file/BFw0iCIa#kJDpmdH8V ... e2eGbAJrx8
Attachments
screenshot_20200519_194013.png
(795.87 KiB) Not downloaded yet
Last edited by apercy on Sun May 24, 2020 11:54, edited 1 time in total.

apercy
Member
Posts: 81
Joined: Wed Mar 25, 2020 16:31
GitHub: APercy
In-game: APercy
Location: Pinheiral - RJ - Brazil

Re: Super Mine Kart

by apercy » Post

I forgot to say. To start the engine you press jump key. To control, use wasd keys. Sneak is used for reversing. You can move without engine, but veeeeery slow.

Gundul
Member
Posts: 827
Joined: Thu Aug 27, 2015 10:55
GitHub: berengma
IRC: Gundul
Location: Europe/Asia

Re: Super Mine Kart

by Gundul » Post

The folder trackelements is empty. The world cannot be loaded because
it looks for an init.lua in that folder X)
My servers: Jungle, Lilly in the valley, ZombieTest

apercy
Member
Posts: 81
Joined: Wed Mar 25, 2020 16:31
GitHub: APercy
In-game: APercy
Location: Pinheiral - RJ - Brazil

Re: Super Mine Kart

by apercy » Post

Gundul wrote:
Sun May 24, 2020 07:58
The folder trackelements is empty. The world cannot be loaded because
it looks for an init.lua in that folder X)
strange...
I put as a submodule on git...
Get it from here: https://github.com/APercy/trackelements

PS: better get from here, the entire package https://mega.nz/file/BFw0iCIa#kJDpmdH8V ... e2eGbAJrx8

Post Reply

Who is online

Users browsing this forum: thomz92 and 6 guests