Menu
Before:
After:
After:
First of all i want to say, jason if you dont like this, feel free to delete this thread, i will not reopen it. Am i stepping over a line by doing this? What are the rules?
------
One Life is a game and server created by fellow YouTube gamer yammyxox. Lizzie's Season 2 debut was on June 2nd, 2017. All players in the game are a part of a Ultra Hardcore based game mode. If a player dies in an episode, they are automatically kicked from the server never to rejoin again until next season, the only exception is during the first five episodes where the player is granted.
I make this because i think its more fun to play the game zoomed out and i want to show people how it can be done. It makes it easier to orientate yourself, easier to find food, less likley to run into wild animals, easier to spot killers/griefers from further away and so on..
I will not upload this to github and i will not upload any executables. But i will explain how you can change the source code in order to zoom out.
In order to find the correct line number, copy the code that i did not change and search (ctrl+f) for it inside the correct file.
In order to find the correct line number, copy the code that i did not change and search (ctrl+f) for it inside the correct file.
First download the source code and make sure you can compile it. (more about this at the bottom)
Now to the coding, change 2 variables in /OneLife/gameSource/game.cpp
The circle of life! You might start with one already on the map. Gameplay mods Tony Hawk's Pro Crusaders 1+2. This mod has now also added 'Skatrilineal Succession' by which the crown passes. A lightly modified client for One Hour One Life, a cross-platform and open-source multiplayer survival game of parenting and civilization building by Jason Rohrer. NOTE: This mod is no longer being actively developed, meaning that it's likely that new features won't be added. Welcome to Two Hours, One Life We are a mod/standalone game of One Hour, One Life. Built majorly from community suggestions, input & feedback. Please visit our website! Within 2HOL are many changes built on top & still merged with the original game. The zoom-out mod was maintained for a long time, not sure it is any more. Jason has said he doesn't really like it, but that is the nature of the game and code he's produced. The only official mod that I'm aware of is a reluctantly-made nudity-removal mod Jason made for those who need it for Youtube or other censorship issues.
The zoom factor i am using is 1.5x, so i multiplied 1280*1.5 to get 1920 and 720*1.5 to get 1080.
I put the old values in comments.
If you now compile it and start it, it will look like this:
Already zoomed out! But the borders are messed up and the health panel is not in the right position.
I put the old values in comments.
If you now compile it and start it, it will look like this:
Already zoomed out! But the borders are messed up and the health panel is not in the right position.
So lets fix the borders first, therefore we need to change several variables inside /OneLife/gameSource/LivingLifePage.cpp
I must admit, i changed them randomly, not sure what the correct values are but this works fine for me.
I must admit, i changed them randomly, not sure what the correct values are but this works fine for me.
The first four numbers i changed to 10, then i added 3 to the next four numbers
I put the original values in comments again.
After this change the borders will look nice, and you will be able to see more trees and other objects on the borders. But the panels are still messed up.
After this change the borders will look nice, and you will be able to see more trees and other objects on the borders. But the panels are still messed up.
So lets fix the panels, this part is a bit messy.
All changes will happen in /OneLife/gameSource/LivingLifePage.cpp
First lets define 2 new constants, you can put them in the first line of the file or next to the other defines.
All changes will happen in /OneLife/gameSource/LivingLifePage.cpp
First lets define 2 new constants, you can put them in the first line of the file or next to the other defines.
The reason why 320 and 180 is because (1920-1280)/2 = 320 and (1080-720)/2 = 180
This has to do with the first change we made.
Now we need to change 14 lines:
This has to do with the first change we made.
Now we need to change 14 lines:
My strategy for the last 6 variables was to just subtract MOVE_PANEL_Y whenever i see a number thats between 310 and 340.
And thats it! Compile, run and enjoy.
How to compile:
Joriom's tutorial: https://onehouronelife.com/forums/viewtopic.php?id=1438
I think its best to use Ubuntu to compile it. If you dont have Ubuntu you can set up a vm or install a dual boot. (google it)
Here is a nice tutorial from jason: http://onehouronelife.com/compileNotes.php
First create a new folder called whatever.
Then create a new file call it pullAndBuildLatest.
Open the file and copy paste this script into it:
https://raw.githubusercontent.com/jason … uildLatest
Save it. Close it. Right Click it. Properties -> Permission -> Check 'Allow executing file as program'
Now rightclick 'nothing' inside the folder you created and click on 'Open in terminal'.
Copy (ctrl+c) and paste (ctrl+SHIFT+v) this:
sudo apt-get install git g++ imagemagick xclip libsdl1.2-dev libglu1-mesa-dev libgl1-mesa-dev
inside the terminal that opened. This will install libraries.
Than write ./pullAndBuildLatest to execute the script you saved.
This will download the latest version from github and then compile it.
If you then make changes to the code you can run the ./runToBuild script in the terminal to compile it. (/runToBuild 1 for ubuntu)
Joriom's tutorial: https://onehouronelife.com/forums/viewtopic.php?id=1438
I think its best to use Ubuntu to compile it. If you dont have Ubuntu you can set up a vm or install a dual boot. (google it)
Here is a nice tutorial from jason: http://onehouronelife.com/compileNotes.php
First create a new folder called whatever.
Then create a new file call it pullAndBuildLatest.
Open the file and copy paste this script into it:
https://raw.githubusercontent.com/jason … uildLatest
Save it. Close it. Right Click it. Properties -> Permission -> Check 'Allow executing file as program'
Now rightclick 'nothing' inside the folder you created and click on 'Open in terminal'.
Copy (ctrl+c) and paste (ctrl+SHIFT+v) this:
sudo apt-get install git g++ imagemagick xclip libsdl1.2-dev libglu1-mesa-dev libgl1-mesa-dev
inside the terminal that opened. This will install libraries.
Than write ./pullAndBuildLatest to execute the script you saved.
This will download the latest version from github and then compile it.
If you then make changes to the code you can run the ./runToBuild script in the terminal to compile it. (/runToBuild 1 for ubuntu)
Bonus: (thanks to sliderule)
https://github.com/jasonrohrer/OneLife/ … .cpp#L1587
Replace the string 'ABCDEFGHIJKLMNOPQRSTUVWXYZ.-,'?! ' with:
https://github.com/jasonrohrer/OneLife/ … .cpp#L1587
Replace the string 'ABCDEFGHIJKLMNOPQRSTUVWXYZ.-,'?! ' with:
This allows you to write numbers and some symbols.
But not all symbols work, some of them doesnt show up when you write them but are visible after you pressed enter and some symbols might also get you killed.
For example if you write # you will get a connection lost error, which might be usefull if you want to quickly commit suicide without restarting the game.
But not all symbols work, some of them doesnt show up when you write them but are visible after you pressed enter and some symbols might also get you killed.
For example if you write # you will get a connection lost error, which might be usefull if you want to quickly commit suicide without restarting the game.
Last edited by Drakulon (2018-05-02 19:08:33)
Install:
Download the .exe file from github and copy it into your ohol folder, then run it
Download: https://github.com/hetuw/OneLife/releases/
Download the .exe file from github and copy it into your ohol folder, then run it
Download: https://github.com/hetuw/OneLife/releases/
Update:
The mod doesnt do any updates. In order to update the mod download a new version and replace it with the old.
You have to check on your own if there is a new version available, older version might become bugged over time and dont contain new updates from jason or me.
Additionally use the vanilla client to update the data, just start it once so it downloads it.
The mod doesnt do any updates. In order to update the mod download a new version and replace it with the old.
You have to check on your own if there is a new version available, older version might become bugged over time and dont contain new updates from jason or me.
Additionally use the vanilla client to update the data, just start it once so it downloads it.
Help page
press H in game to show all the hotkeys and commands
press H in game to show all the hotkeys and commands
Object search feature
Press J to add an element to the list, click on an element to remove it again.
Press SHIFT+J to remove the last element from the list.
Press J to add an element to the list, click on an element to remove it again.
Press SHIFT+J to remove the last element from the list.
Ohol Mod
Players in range
Press P to toggle between the mods and activate it
Shows how many players are near you.
The first family is always your own. (it doesnt count you)
The number next to F shows how many women under 40 there are.
The other number shows how many players of the family there are.
Unknown are players without a name.
Press P to toggle between the mods and activate it
Shows how many players are near you.
The first family is always your own. (it doesnt count you)
The number next to F shows how many women under 40 there are.
The other number shows how many players of the family there are.
Unknown are players without a name.
Yum finder: (thanks to wondible for providing code)
video: https://i.imgur.com/NrTuG1B.mp4
(feature is not 100% accurate)
video: https://i.imgur.com/NrTuG1B.mp4
(feature is not 100% accurate)
Highlight dangerous Animals:
vido https://i.imgur.com/ZvK7iMh.mp4
vido https://i.imgur.com/ZvK7iMh.mp4
hetuw.cfg
when you first start the mod it will create a file called 'hetuw.cfg'
inside you can change hotkeys, settings and modify the features a bit
when you first start the mod it will create a file called 'hetuw.cfg'
inside you can change hotkeys, settings and modify the features a bit
Zoom
scroll with the mouse to zoom in and out
press -> (right-arrow-key) to zoom out
press <- (left-arrow-key) to zoom in
scroll with the mouse to zoom in and out
press -> (right-arrow-key) to zoom out
press <- (left-arrow-key) to zoom in
Coordinates:
coordinates will be displayed in the top left corner, they are relative to your birth location
you can press R and then H (or any other letter) to create a new coordinate where you stand, a list on the left side will pop up.
you can create as many waypoints as there are letters. (for example R and then G)
you can click on a coordinate from your list to set it to your 0, 0 position, all other coordinates will than be relative to it. (on default they will be relative to your birth)
you can CTRL + click on a coord to delete it.
if a bell or apoc tower rings its coords will be added to the list automatic.
if you see a tarr monument than its coords will be added to the list automatic (this is because in vanilla its in the center of the map)
you can press SHIFT+R and then a letter to manually input the coords (the x and y, so you dont need to stand where you want to have your coord)
coordinates will be displayed in the top left corner, they are relative to your birth location
you can press R and then H (or any other letter) to create a new coordinate where you stand, a list on the left side will pop up.
you can create as many waypoints as there are letters. (for example R and then G)
you can click on a coordinate from your list to set it to your 0, 0 position, all other coordinates will than be relative to it. (on default they will be relative to your birth)
you can CTRL + click on a coord to delete it.
if a bell or apoc tower rings its coords will be added to the list automatic.
if you see a tarr monument than its coords will be added to the list automatic (this is because in vanilla its in the center of the map)
you can press SHIFT+R and then a letter to manually input the coords (the x and y, so you dont need to stand where you want to have your coord)
Food-Value indicator
when you are holding a food item in your hand, it will show you how much food you will gain by eating it
when you are holding a food item in your hand, it will show you how much food you will gain by eating it
Show player names
all player names will be written above the players, the color depends on your relationship with that person.
your mother is green, your cousins are blue or purple, unrelated people are white.
you can show only first names / full names or no names at all, press N to change it.
all player names will be written above the players, the color depends on your relationship with that person.
your mother is green, your cousins are blue or purple, unrelated people are white.
you can show only first names / full names or no names at all, press N to change it.
Death messages
if someone in your area dies you wll see a death message on your screen.
telling you the name of the person that died, their age and gender.
if someone in your area dies you wll see a death message on your screen.
telling you the name of the person that died, their age and gender.
Emotions
you can press 0-9 and F1-F4 to make emotions
you can also write an emotion in chat, than it will last permantly, you can stop it by pressing 0-9
you can press 0-9 and F1-F4 to make emotions
you can also write an emotion in chat, than it will last permantly, you can stop it by pressing 0-9
E
press E to eat what you are holding in hand
press E to eat what you are holding in hand
Q
press Q to put something in your backpack or take something out
press Q to put something in your backpack or take something out
SHIFT+Q
switch the item in your hand with an item inside your backpack
switch the item in your hand with an item inside your backpack
C
press C to pick up or drop a baby
press C to pick up or drop a baby
WASD
you can use wasd to go up/left/down/right
this makes it easier to avoid dangerous animals and it will open doors automatically
you can use wasd to go up/left/down/right
this makes it easier to avoid dangerous animals and it will open doors automatically
Cached
SHIFT+WASD
similar to left click, will pick up an item in the choosen direction
similar to left click, will pick up an item in the choosen direction
CTRL+WASD
similar to right click, for example: CTRL+W can be used to pick up an item from a basket that is 1 tile above you
similar to right click, for example: CTRL+W can be used to pick up an item from a basket that is 1 tile above you
SPACE
similar to left click, can be used to pick up items from the tile you are standing on
similar to left click, can be used to pick up items from the tile you are standing on
CTRL+SPACE
similar to right click on the tile you are standing on
similar to right click on the tile you are standing on
F
press F to stop the camera from moving, with the default client you have to keep holding SPACE to achieve this effect
press F to stop the camera from moving, with the default client you have to keep holding SPACE to achieve this effect
X
video: https://i.imgur.com/1FA813s.mp4
lets you see behind trees
video: https://i.imgur.com/1FA813s.mp4
lets you see behind trees
L
teach babies your language
teach babies your language
One Hour One Life Mod
Last edited by Whatever (2020-02-10 08:13:10)