Code Monkey home page Code Monkey logo

onelife's Introduction

OneLife

This is a modified version of OneLife https://github.com/jasonrohrer/OneLife
Check out this forum thread to see what it can do and how to use it: https://onehouronelife.com/forums/viewtopic.php?pid=53465#p53465

Table of Contents
- Installation
- Changes
- Compiling
- Other Mods

Installation:

you can download the executable here: https://github.com/hetuw/OneLife/releases
for windows this would be "OneLifeApp_H_windows.exe"
place this file inside your ohol folder and then start it.

Changes:

Help page

press H in game to show all the hotkeys and commands

Zoom

press -> (right-arrow-key) to zoom out
press <- (left-arrow-key) to zoom in

Age

current age will be displayed on the bottom panel

Coordinates

coordinates will be displayed in the top left corner, they are relative to your birth location

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

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.

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.

Players in range panel

in the top right corner you can see how many people are in your range
and how many of them are females under the age of 40.

Emotions

you can press 0-9 to make emotions
you can also write an emotion in chat, than it will last permantly, you can stop it by pressing 0-9

Keyboard Control

E

press E to eat what you are holding in hand

Q

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

C

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

SHIFT+WASD

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

SPACE

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

F

press F to stop the camera from moving, with the default client you have to keep holding SPACE to achieve this effect

Compiling:

The following instructions are for compiling this mod with linux.

You will need to install the following:
sudo apt-get install git g++ make imagemagick xclip libsdl1.2-dev libglu1-mesa-dev libgl1-mesa-dev
Then download this script: hetuwPullLatest.sh
Put it inside an empty folder and open a terminal inside this folder.

First set the executeable bit by writing:
chmod +x hetuwPullLatest.sh
Then execute the script in order to download the latest version:
./hetuwPullLatest.sh linux 1
You can also download it for windows, like this:
./hetuwPullLatest.sh windows 3
In order to compile you can type:
./hetuwCompileAll.sh
To start it type:
cd linux
./OneLifeApp

more information about how to compile ohol:
http://onehouronelife.com/compileNotes.php?nocounter=1
https://onehouronelife.com/forums/viewtopic.php?id=1438
https://onehouronelife.com/forums/viewtopic.php?id=423


other mods:
https://github.com/Awbz/OneLife
https://github.com/JustinLove/onelife-client-patches
https://gitlab.com/_zed_/OneLife/
https://github.com/PXshadow/OpenLife

onelife's People

Contributors

jasonrohrer avatar pxshadow avatar selb avatar justinlove avatar alecyawata avatar themingo888 avatar norgg avatar colinmarc avatar

Stargazers

Bohdan Mart avatar  avatar  avatar  avatar Animoe avatar Chris avatar  avatar Is_52Hertz avatar ひなた avatar  avatar Jia Xuan Ng avatar vanni avatar Filip Bartuzi avatar  avatar Max P avatar  avatar Ariel Lothlorien avatar Connor Smith avatar Svetlozar Valchev avatar Timur Guzairov avatar  avatar  avatar  avatar will avatar Nicholas Ramsey avatar  avatar Morb avatar  avatar Faro avatar  avatar  avatar Sophie avatar  avatar

Watchers

James Cloos avatar  avatar  avatar

onelife's Issues

Erase coords

Can we have an ability to erase coordinates? Having too many garbage coords can be a pain where you can't delete them.

mod not working

i relaunched several times, started happening today. none of the mod features are visible as if it didn't launch at all. i alread tried to download latest version and replacing file manually

Expert waystones don't show coordinations.

Expert waystones did show coordinations in previous version of your mod (v314). Previous version is still working with the game and I keep using it because it's usefull to see expert waystones coordinates.

Mod breaks running on diagonal roads

Recently game was updated to make transitioning on and off diagonal roads work. When I play vanilla client diagonal road transitioning works, but on hetuw mod it doesn't.

Game crashing randomly

Sometimes my game crashes even twice a life. Sometimes not even once but most of the time at least once per life.

Here is log from debugger:
Program received signal SIGSEGV, Segmentation fault.
0x769b9cc0 in strlen () from C:\WINDOWS\SysWOW64\msvcrt.dll
#0 0x769b9cc0 in strlen () from C:\WINDOWS\SysWOW64\msvcrt.dll
#1 0x005ed653 in std::__cxx11::basic_string<char, std::char_traits, std::allocator >::append(char const*)
()
#2 0x1f4afa28 in ?? ()
#3 0x0040ef8e in HetuwMod::onPlayerUpdate (inO=0xd4d354,
line=0x1f01f198 "2314519 2462 0 0 0 0 0 0 0 0 876 0.24 0 0 X X 22.46 60.00 3.75 199;712;0;0;200;0 0 0 -1 0 0")
at hetuwmod.cpp:3131
#4 0x004784fd in LivingLifePage::step (this=0x1b88dcf8) at LivingLifePage.cpp:14905
#5 0x00447715 in PageComponent::base_step (this=0x1b88dcf8) at PageComponent.cpp:54
#6 0x00449246 in GamePage::base_step (this=0x1b88dcf8) at GamePage.cpp:334
#7 0x0041746d in drawFrame (inUpdate=1 '\001') at game.cpp:1367
#8 0x0051459a in GameSceneHandler::drawScene (this=0x3070ad0) at ../../minorGems/game/platforms/SDL/gameSDL.cpp:3169
#9 0x004e7161 in callbackDisplay () at ../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:2918
#10 0x004e5bad in ScreenGL::start (this=0x306a448) at ../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:2122
#11 0x005131ff in mainFunction (inNumArgs=1, inArgs=0x30688f8) at ../../minorGems/game/platforms/SDL/gameSDL.cpp:2488
#12 0x0050e658 in SDL_main (inArgCount=1, inArgs=0x30688f8) at ../../minorGems/game/platforms/SDL/gameSDL.cpp:23
#13 0x0052b329 in console_main (argc=1, argv=0x30688f8) at ./src/main/win32/SDL_win32_main.c:315
#14 0x0052b3eb in WinMain@16 (hInst=0x400000, hPrev=hPrev@entry=0x0, szCmdLine=0x11038c6 "", sw=10)
at ./src/main/win32/SDL_win32_main.c:398
#15 0x00608ccd in main (flags=1, cmdline=0xef1158, inst=0xef1560) at ./mingw-w64-crt/crt/crt0_c.c:18
(gdb)

Jason answered me this:

This crash is actually a bug in the mod. I looked at their code at that spot, and they aren't handling a case correctly (if the death message arrives for a player without a death reason attached to the end).

This is on line 3131 in the mod here:

https://github.com/hetuw/OneLife/blob/master/gameSource/hetuwmod.cpp

That line assumes that deathMessage->description is not NULL, but right above there, on line 3121, deathMessage->description can be set to NULL in some cases.

I'm actually not 100% sure that this NULL string is the problem. But something in the mod is crashing on line 3131. Can you submit a github report for them?

I tested this case in my client, and it handles it correctly without crashing.

Object pulsating does not work for all objects

This can be seen when using the search or yum feature.
Milk buckets, milk bowls, carrot rows... will not pulsate.

Additionally not all objects will be highlighted correctly when the yum color feature is active.

the linux (ubuntu) version has all the text upside down and sometimes blank

I ran a fresh install and followed the steps listed exactly as they are listed but all the menus and text related items are broken. Some of them are upside down and some of them are just blank. The only error I'm seeing in the command prompt is casting wrong types of ints into each other. It was the same way (upside down) for the last weeks version too.

Can't use modded client

First time this has happened to me. I followed instructions, cleared cache files etc, opened the normal client first and logged in. When using the hetuw client, it updates and reverts back to normal ohol. Every time. Tried redownloading client too.

HETUW still saying needs to update after update

I've deleted the cache and opened the game first, I've redownloaded HETUW and I've even redownloaded the game again, but it's still saying it can't connect through Steam (I have Steam open and updated) and still needs an update

Config emotes

You should be able to config what keys each emote is. Perhaps you could also bind messages and sayings to keys too?

Emotion bugs

This mod is useful but now i can’t make a face. It doesn’t work when i press the number key and directly writing down either. I want to make a devious face., how do i correct this bug

MS block at first sight

HI MOM
....
https://docs.microsoft.com/en-us/windows/security/threat-protection/windows-defender-antivirus/configure-block-at-first-sight-windows-defender-antivirus
.....
MS is blocking your page by default. I would like to keep this feature enable, but can not seem to find a manual override option, like how we can adjust firewalls, without completely disabling this security feature. Above I linked the page I was directed to. You may need to fin a way to work around this if folks are to use your mod. I suspect other moders may have likewise issues. I got this error the first time I tried to launch your mod. I can get to the main menu, but fail to connect to servers. I suspect you might find luck contacting the other OHOL moders?

Next Release

When the next client version gets published probably in a month from now. I want the automated github action system to work. I think it's the best means to keep the hetuw client alive and usable, as I don't really want to boot up a vm each time to compile the game. Also I am more than happy to welcome in contributors to the project. I will have it so github actions can also validate pull requests to make sure the code is not breaking and than I can quickly merge requests.

Suggestion: Single out an Item

Loving this mod, it's a great addition. The X-Ray vision feature is especially cool. I was wondering if it would be possible to modify this feature so that it can single out an item.

For example, I need hoe so I zoom out and scan the area with my eyes, this is very straining and often frustrating. Trying to identify a single item when there's stuff scattered all over the place is no fun.

So lets say for example I type "/f hoe" and the mod will remove all the clutter like it does with X-Ray and only show the hoes (if any are around), then I can type a / to clear it back to normal.

Is something like that possible? It'd be a game changer.

Zooming in and out breaks mouse capture

When run on 3440x1440, after changing the zoom level mouse pointer does not cover whole game area. System and drawn cursors are shifted. Happens on native linux and windows version with proton.

Can't click through people

Why can't I use the X key to click through people anymore?
I tried changing the x-ray hotkey to something else and the X key still doesn't work.

Crash

Whenever I play with the mod, my computer crashes. This wouldn't be too bad but if I restart my computer and try to play again it just keeps on crashing.

Rebinding x-ray doesn't restore vanilla behavior to X key

On the vanilla client the X key is used to click through large objects and people to the tile behind. After rebinding x-ray to another key the default vanilla behavior is still blocked. Not sure what's wrong, but without being able to click behind your head it makes it hard to smelt and cook in crowded places, as player move into your way and block your crafting. Please restore the default X key behavior.

Thank you

Azerty keyboard problem

I have a french azerty keyboard, so I tried to change the W and A key for respectively Z and Q, to be able to use "WASD" controls (ZQSD in my case).
The problem is when you hit Z to go up or Q to go left, it is like the key is still pressed (even though it's not) so the character keep going in the same direction. To stop the character from moving you have to press W or A ... weird ...

Maybe the configuration file only set the press key and not the release key ?

So for now I changed the keyboard configuration on windows without changing the .cfg file, but it's annoying.

Amazing mod btw and thanks in advance.

Vanilla Arrows + Distance

Can you add an option in the cfg or in-game to use arrows + distance instead of coordinates? It's very difficult for me as a user to compare 2 coordinates against each other in order to find my my waypoints. Perhaps give this functionality to all waypoints with mini-arrows + distance?

Some Sounds are Missing

I noticed while using this mod (on multiple devices) that there're some missing sounds.
For example the sounds of babies when they pop out of their mothers, both the pop sounds and the crying baby sound are missing.
This makes it hard for mod users to be notified that they just gave birth and they will continue on with their lives without knowing.
Is there a way to enable the sounds? or does it has to be a mod fix?

"Failed to connect to Steam"

After the recent update, I get this message upon pressing play. Never happened to me before all these months I've been using this mod.

Forking need help

I've been trying to compile but I don't have any idea how to compile large amounts of files, do i just compile the game source in itself?

Will not install

Whenever I try to install the newest version of the mod, and try to run it it runs an error stating,"The code execution cannot proceed because SDL.dll was not found."

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.