-
-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Engine building tutorial #59
Open
MidnightMagenta
wants to merge
2
commits into
Engine-Simulator:master
Choose a base branch
from
MidnightMagenta:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
tutorial/03_building_engines/03_Buliding_Engines_01_Single_Cylinder.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# WIP | ||
|
||
## 01 - single cylinder engine | ||
|
||
#### Intoduction | ||
|
||
In this tutorial you will learn how to make a simple single cylinder engine completly from scratch. | ||
|
||
When you're actually making engines, it's generally preferable to simply modify other engines (LTSP created by Archangel Motors is a good example of engine templates made to be modified by users), however I belive it's important to understand the syntax of Piranha to be decent at making ES engines. Due to that this tutorial will cover every step necessary to get a simple 1 cylinder engine running in Engine Simulator. | ||
|
||
In further tutorials you'll learn how to add other fetures, such as more cylinders, the vehicle model, and much more. | ||
|
||
#### Creating the file | ||
|
||
Engine Simulator engines are saved in a special file with the extention of .mr. We need to have that file to actually have a place to write code in, so let's make one. | ||
|
||
Firstly you need to be able to edit file extentions, for that we need to see these extentions, so let's enable that. | ||
|
||
In file explorer go into the view tab: | ||
|
||
![alt text](assets/file_explorer_file_extentions.png) | ||
|
||
In that tab you want to make sure "File name extentions" is checked | ||
|
||
![](assets/file_explorer_checkboxes.png) | ||
|
||
Once you have that, you want to create a text file by right clicking in the destination folder, and navigating to new -> text document | ||
|
||
Then right click on the file, click rename, and change the last three letters (.txt) to .mr | ||
|
||
#### Getting an editor | ||
|
||
Now that we have the file, we need to be able to edit it. Technically it's possible to edit .mr files in the Windows notepad, however it's preferable to use an actual editor. Visual Studio Code is recomended, as it has syntax highlight for Piranha. | ||
|
||
To install VS Code, you'll want to download the installer from [this webside](https://code.visualstudio.com/) | ||
|
||
Once you have that installed, you also want to download the Piranha extention from [here](https://marketplace.visualstudio.com/items?itemName=EktoromSoftwareInc.piranha-extension) |
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
*completely