Coder Social home page Coder Social logo

openhogwarts / hogwarts Goto Github PK

View Code? Open in Web Editor NEW
683.0 83.0 155.0 1.29 GB

Hogwarts (Harry Potter) open sandbox game made in Unity

License: Other

C# 70.31% ShaderLab 16.41% HLSL 11.22% GLSL 1.95% JavaScript 0.10%
hogwarts unity harry-potter game harry potter

hogwarts's Introduction

A Hogwarts (Harry Potter) open sandbox game made in Unity. NOT FINISHED

Good news! An official Harry potter RPG game is in development: https://download.void.cat/20037112355c696ce37131b173d245f8489ce8d2

https://my.mixtape.moe/scyeev.mp4

Table of Contents

Video Demo

OpenHogwarts demo hogwarts hogwars2 hogwars3 hogwars4 hogwars5

Binary download


You can download the latest compiled binary here: https://github.com/OpenHogwarts/hogwarts/releases

Development requirements


  • Unity (tested version in)=> ProjectVersion.txt (it should work on newer versions too, but may require changes/fixes)

Development setup


Analytics

  • Clone/Download this repo (https://github.com/OpenHogwarts/hogwarts/archive/master.zip)
  • Open the downloaded folder in Unity (File -> Open Project)
  • In Unity project's folders double click MainMenu (Assets -> Scenes -> MainMenu)
  • Hit the start button from Game tab. Inside the game, click create a New Character, set the name and click on "Enter".

Working features


  • Multiplayer
  • Chat
  • Inventory
  • NPCs (Agressives, sellers, questers, talkers) + patrols
  • Spells combat
  • Flying Broomstick
  • Quests

¿Why development is so slow?


Because everyone wants to play, but no one wants to code/design/mod/help.

Hotkeys


Since they may change, always check https://github.com/OpenHogwarts/hogwarts/blob/master/Assets/Scripts/Player/PlayerHotkeys.cs to ensure which are the latest assigned for each action.

  • WASD: Player control
  • ESC: Config
  • F1: Enable Dev options in ESC menu
  • F2: Take screenshot
  • Z: Hide UI
  • E: Broomstick spell
  • Q: Lumos
  • T: Chat
  • B: Bag
  • C: Character
  • Left mouse: Select target
  • 1, 2, 3.. keys: Spell cast

Broomstick hotkeys


  • WASD: Basic control
  • Right mouse: 3D Direction control

ToDo


Check the wiki https://github.com/OpenHogwarts/hogwarts/wiki/ToDo

Credits


Special Thanks


  • Bruce (iBoxDB creator) for the technical support given
  • Rusfighter for finding the OnMouse events - NPC bug
  • finchen for continuously improving the game and it's code

Copyright Notice


All trademarks or registered trademarks mentioned are property of their respective owners. Unless identified with the designation "COPY FREE", the contents of this project are copyright reserved by its owners.

hogwarts's People

Contributors

ayseenver avatar binyamin avatar bluerubberduck avatar ferdinandsu avatar finchen avatar githuis avatar kardall avatar lauralaureus avatar muertet avatar openhogwarts avatar pacopgd avatar sanghelyos avatar tetreum avatar theking465 avatar vancete avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hogwarts's Issues

Help understanding structure

Hello!

I've been trying to figure the system out.
Where do the game save each characters data? Can't find it. How can it remember my character?

And how can you tell the system which level to load?

For example when you click the test button:
public void joinTest () {
Menu.defaultLevel = Menu.debugLevel;
joinGame (playerId, "Tester");

But how does it know which scene is the "debugLevel"?
If I would like to add maybe a new scene to a button, how could I do it?

Someone please explain! :) Thank you!

How to update language [English]

So i see the resource, however the binary download you have available is in spanish only with no option to switch to english that i can see. the instructions deal with programs and seem to assume that we know exactly what you are talking about, where it is, and where the files we need are already located.

Please update this with a REAL step by step for the english , which english file to use (updated or the regular .json), where it goes, how to edit the necessary files for those that don't have unity editing experience, and please please please be precise and include all the steps.... otherwise you're going to have trouble bringing in support from anyone that speaks english if you can't even make directions easy/available/understandable.

Improving Project Documentation

First of all, I wanted to say that this project is awesome, the demo video looks fantastic! I have a pretty broad/solid programming background, but little Unity3D experience and no modeling/animation background. That being said, I would like to learn and this seems like a fun project to work on!

Road Map and Project Scope
I'd love to start making contributions to this project (and I have several ideas of my own), but I'm not sure what direction the current developers are hoping to take the game. A clear (and more thorough) outline of this would really help potential new contributors (like myself), and make sure everyone's on the same page. I can add this, I'd just like to start a discussion here. I've found a ToDo list here and here, but I don't know how up to date they are.

Recommended Build Setup
I downloaded the master.zip file recommended under "Development Setup" and opened in Unity 2019 on Linux, but there are 75 compilation errors and over 100 warnings. Is there a more current build? I noticed in "Project Version" that most people are using Unity 2017, and from the .gitignore it looks like Windows is used. So should Windows 10 with Unity 2017 and Visual Studio work? What file formats and animation/modeling tools are used? It would just be nice to have this in one place.

Baking textures to improve performance

Hi guys!

I found this tutorial: https://www.youtube.com/watch?v=Tj-S5QAac3U

It talks about baking textures so they don't have to be rendered again every frame. We have a lot of static objects like buildings which maybe could benefit from this? I've had a go in Blender before and haven't gotten very far, but I'll try again and hopefully get something working. What are your thoughts?

Stuck on "Connecting" at Main Menu

I recently fixed compiling issue by updating Photon Unity Networking which is in a pull request I just made, but after I try run and try to play it seems to be stuck on "Connecting". Do I need to host a server or something? Sorry am new to this lol

About the project

Hello!

It's an amazing project! I would ask you some information about it privately if possible.

Could you contact me on Discord on this channel please? ***

Thank you in advance

I want to help

Looks awesome. Do you you have a roadmap? And need some help on code?

Models

May I help ?

I'm not a Unity-graph-modeler or anything else. Just a programmer, usually web-backend-php-db like sql. But, I'm in love with this universe, i know it by heart, I may help with the scenario/game play/quest if you want :) Also, C# shouldn be to difficult for me to understand, just need to read a bit about the langage's rules, but coming from php, i already know the big concept about oop and dev so ... may i help with that :)
I learned Spanish at school, old days... I still can understand it (with google's help for some words hahaha), maybe able to translate some of your text to french/english :)
so let me know, i m going to look around a bit in the project tonight, but would be so happy to help you in this wonderful adventure ! Your project is so amazing, it could be so great to play with for real.

Love your work

Your work seems amazing.
I would love to contribued to this project.
Sadly im shit at coding, but if you ever need help for something. Im here.
You are the best

A hp fan <3

Harry spawns more than once when logged out in between

I started the game, walked around and logged out (not quitting the game entirely).
Re-entered, now Harry spawns twice at the usual starting location.
Logging out and enter again: Harry exists three times, and so on.

Need a developer?

Hello👋

What if I try to:

  • Fix mouse, aiming and interactions with env, camera, movements
  • change a bit broomstick flyings (add more realistic movements, animations, speed)
  • Fix characters name labels
  • Add more terrain (nature, trees, mountains, etc) far from castle

All I'll do is just up to my enthusiasm. I'll try to do best.

Gameplay video?

The list of working features is impressive! For someone thinking about trying this out but not sure if it's worth the time investment in getting the dev environment setup it would extremely helpful to see some videos of gameplay.

Would you consider putting some demos of gameplay on youtube or something?

Not able to build in the unity 2019

I tried to open this project in the latest version of the unity, but it wont build properly if push to open in the latest version what to do if i want to open this project in the latest unity 2019 version

What version of Unity is recommended for this project?

I'd really like to help work on this project, but their are so many compiler errors that I just can't even test the game out as I keep having to fix bug after bug. I'm thinking it may have something to do with my current version of Unity(2018.3.5f1), because all of the bugs I'm encountering are typically somewhat related to the version of Unity I'm using.

I saw in the readme that it should work in versions 2017.4.0f1 and up, but it doesn't seem to be working on my version. Does anybody have this game working, and if so what version of the engine are you using?

Initial menu has overlapped buttons

The first menu with "crear personaie" appears to have another button, but they are overlapped. I've tried several different resolutions and the effect is the same.

If I click the top button in the layer, I am taken to a screen to fill in a username, but it doesn't let me get any further.

The instructions say that "Entrar" should appear, but it doesn't.

Please let me know how I can help debug this, happy to provide log output, screenshots etc.

Continuation of the project

Is there any possibility for the project to be updated? even using the indicated version it still has an error in the codes. could you update please?

I hope this project doesn't die

The map

Hi! I really liked your game, and now I'm thinking about creating my own harry Potter game! I wanted to ask you if I can use the Hogwarts castle, and if so, how can I copy the full castle into my game? Thanks so much.

Add proper license for project

Can you please add license file into repository? For now, any contribution is "illegal" (look into for e.g. https://opensource.stackexchange.com/a/1721), because of lack of license information. If you don't want to think about license limitations and allow anyone to contribute without restrictions, you can just use MIT, its template already proposed by GitHub, if you trying to add LICENSE file into root directory via we interface.

I want to help you !

Hey,
I just discovered your creation and I'm stunned. I have some skills, I'm making models, I have already made most model of harry potter with blender (humans, monsters, animals, wands, props...).

Also I am french, and I would like to translate your game (with the help of the English translation) but I do not know how to do it.

Thanks !!!

May I help

I have used Unity for over 4 years and have tested multiplayer features. Wondering if I could help.

Combat - Spell Cast Re-Write

Just adding this, cause while I was messing around I found this.

If I disable mana costs. I could spam like multiple spells and two things happened:

  1. I could get like 10+ fireballs per second going out to the target.
  2. the spell graphics circled around the target constantly.

it's like the "follow" ability is just going in circles (Lerping?) to the target, instead of going directly to it.

Open in UNity

Can you perhaps explain more thoroughly how I clone the repo and open it in Unity, I have recently downloaded Unity but cant understand how to open it to "play" the map.

Localization or different default language

Hi.
I'm quite interested in this game, looks nice so far - but I don't speak Spanish, so the not only default, but only option to get a spanish in-game user interface is a showstopper for me.

Therefore I propose to add multi-language-support (and I hope it get's interested enough to keep me on track to participate). I could contribute German (native speaker) and if nobody else could, English.

Stuck on connecting...

Thanks for uploading this project!
Whatever hosting type i choose, 'photon cloud' or 'self hosting', the game still remain connecting after i press the play button.
i set up a localhost server by following the steps on photon official site , still the same.
Does anyone know how to solve?

Happy to Help, Wondering if work is still happening

Hey Hogwarts,

I have just finished playing the new hogwarts game, which has made me found this github. With that being said, I have experince to code games for the reason I have self taught myself. Let me know on what coding problems u need done and I can get all fixed up or new features.

I really hope the game is still being worked on, if not. happy to try and bring it back to life, however I am not a designer only a programmer.

Hope to hear back and get on the track running.

If u want to see my previous work, DM me and ill show u what i have created :)

Improve combat

  • Some attacks don't go guided to NPC.
  • When you are dead, there's no "You're dead" message/respawn option (place back to initial spawn with full or half as penalty).

How to change what NPCs say?

I've placed a few more NPCs around the place by just duplicating existing talker NPCs. Is there a way for me to choose what I want each NPC to say? I see that each thing they say depends on what their ID is, but I can't seem to find where the phrases they say are being stored for me to edit/add to them.

Can't open project - unity crashes?

So I've downloaded the zip, unzipped it and opened the project in unity. However it has 999+ compiler errors and every time I try to open a scene unity crashes. Have I missed something?

I keep crashing

When I try to play the game, the game always crashes. I have only tried a few times, but still, all the times I have clicked the file(even on something else) it has crashed

Can I help?

Such a cool idea! 🎈🎈 🎉
☕️ Languages I Know:

  • Html
  • css
  • javascript
  • english.
    I could translate stuff for you. Or, I could build you a website with free hosting. 😀 ; Just let me know.

New build and/or 'the noobie develop setup guide', please

Hello mates!
I'm a big HP fan and want to contribute.
Because I'm a C# developer, I don't have problems with the programming itself. Also I worked with Unity in 2016 and still remember some workflows from those days.
But now, when I tried to open/launch the project in Unity 2020.3.f1, I got stuck.
Shortly, I'd be very glad if you:

a) help me to resolve some errors which happened when I try to launch the project. E.g., Unity asks me to fill up the PhotonProjectSettings file, otherwise it'd not be able to connect. I don't know what to write in the Settings file :(. Is it possible to use localhost or smth like?
In general case, I'm thinking about smth like youtube tutorial named like 'The guide from downloading to appearing the Hogwarts scene in the game mode'.

b) or, which is simpler, make a new release build please, so I'll be able to play instantly at least. Furthermore, I think that the new build is strongly needed to be released because the current game content and possibilities are very different from the old 1.0 release.

Anyway, any help/advice is greatly appreciated!
Greetings from Ukraine. Sorry for my English.

Main menu is stuck on Connecting...

This game looks really cool, but unfortunately it is stuck in Connecting at the main menu.
I set up a Photon PUN app but it doesn't seem to work (getting a bunch of event 226).

Possible to run this locally without the networked components?

UnityEngine.Debug:Log(Object)
NetworkingPeer:OnOperationResponse(OperationResponse) (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/NetworkingPeer.cs:1627)
ExitGames.Client.Photon.PeerBase:DeserializeMessageAndCallback(StreamBuffer)
ExitGames.Client.Photon.EnetPeer:DispatchIncomingCommands()
ExitGames.Client.Photon.PhotonPeer:DispatchIncomingCommands()
PhotonHandler:Update() (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/PhotonHandler.cs:161)

OnEvent: Event 226.
UnityEngine.Debug:Log(Object)
NetworkingPeer:OnEvent(EventData) (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/NetworkingPeer.cs:2395)
ExitGames.Client.Photon.PeerBase:DeserializeMessageAndCallback(StreamBuffer)
ExitGames.Client.Photon.EnetPeer:DispatchIncomingCommands()
ExitGames.Client.Photon.PhotonPeer:DispatchIncomingCommands()
PhotonHandler:Update() (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/PhotonHandler.cs:161)

queueIncomingCommand() CMD(7 ch#/sq#/usq#: 0/3/2 r#/st/tt:0/0/0) channel seq# r/u: 3/1
UnityEngine.Debug:Log(Object)
NetworkingPeer:DebugReturn(DebugLevel, String) (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/NetworkingPeer.cs:1608)
ExitGames.Client.Photon.EnetPeer:QueueIncomingCommand(NCommand)
ExitGames.Client.Photon.EnetPeer:ExecuteCommand(NCommand)
ExitGames.Client.Photon.EnetPeer:DispatchIncomingCommands()
ExitGames.Client.Photon.PhotonPeer:DispatchIncomingCommands()
PhotonHandler:Update() (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/PhotonHandler.cs:161)

OnEvent: Event 226.
UnityEngine.Debug:Log(Object)
NetworkingPeer:OnEvent(EventData) (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/NetworkingPeer.cs:2395)
ExitGames.Client.Photon.PeerBase:DeserializeMessageAndCallback(StreamBuffer)
ExitGames.Client.Photon.EnetPeer:DispatchIncomingCommands()
ExitGames.Client.Photon.PhotonPeer:DispatchIncomingCommands()
PhotonHandler:Update() (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/PhotonHandler.cs:161)```

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.