Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Bug Game not the same when ported across devices

Discussion in 'Editor & General Support' started by FoxyWoxy12000, Aug 17, 2023.

  1. FoxyWoxy12000

    FoxyWoxy12000

    Joined:
    Aug 12, 2023
    Posts:
    6
    So I was on vacation and i wanted to keep working on my game so i usb'd it over to my laptop but when i put it back to my computer only 1 3rd of the assets loaded and the loaded incurrectly i need help and i tried to open a remote project but there was literally NOTHING on remote projects i need help pls
     
  2. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    3,899
    How exactly did you „put it back“? Hopefully you didn‘t just overwrite the existing files? Because that can wreak havok. The best you can try at this point is to delete the Library folder in hopes that the cached files (valid only on the system you work on) are the issue.

    You can also try unpacking it to an empty folder.

    And if that doesn‘t work copy it again from the Laptop to USB into an empty folder and put it back into another empty folder on your current machine.

    In the future: use source control (git/github) to share a project among multiple machines, and generally for work.
     
  3. FoxyWoxy12000

    FoxyWoxy12000

    Joined:
    Aug 12, 2023
    Posts:
    6
    i deleted the old files then moved the new files to be where the old files were and then opened it but everything was wrong

    I will try to setup a github project

    and what do you mean by unpacking it to an empty fol
     
  4. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,560
    PROPERLY CONFIGURING AND USING ENTERPRISE SOURCE CONTROL

    I'm sorry you've had this issue. Please consider using proper industrial-grade enterprise-qualified source control in order to guard and protect your hard-earned work.

    Personally I use git (completely outside of Unity) because it is free and there are tons of tutorials out there to help you set it up as well as free places to host your repo (BitBucket, Github, Gitlab, etc.).

    You can also push git repositories to other drives: thumb drives, USB drives, network drives, etc., effectively putting a complete copy of the repository there.

    As far as configuring Unity to play nice with git, keep this in mind:

    https://forum.unity.com/threads/prefab-links-keep-getting-dumped-on-git-pull.646600/#post-7142306

    I usually make a separate repository for each game, but I have some repositories with a bunch of smaller test games.

    Here is how I use git in one of my games, Jetpack Kurt:

    https://forum.unity.com/threads/2-steps-backwards.965048/#post-6282497

    Using fine-grained source control as you work to refine your engineering:

    https://forum.unity.com/threads/whe...grammer-example-in-text.1048739/#post-6783740

    Share/Sharing source code between projects:

    https://forum.unity.com/threads/your-techniques-to-share-code-between-projects.575959/#post-3835837

    Setting up an appropriate .gitignore file for Unity3D:

    https://forum.unity.com/threads/removing-il2cpp_cache-from-project.1084607/#post-6997067

    Generally the ONLY folders you should ever source control are:

    Assets/
    ProjectSettings/
    Packages/

    NEVER source control Library/ or Temp/ or Logs/
    NEVER source control anything from Visual Studio (.vs, .csproj, none of that noise)

    Setting git up with Unity (includes above .gitignore concepts):

    https://thoughtbot.com/blog/how-to-git-with-unity

    It is only simple economics that you must expend as much effort into backing it up as you feel the work is worth in the first place. Digital storage is so unbelievably cheap today that you can buy gigabytes of flash drive storage for about the price of a cup of coffee. It's simply ridiculous not to back up.

    If you plan on joining the software industry, you will be required and expected to know how to use source control.

    "Use source control or you will be really sad sooner or later." - StarManta on the Unity3D forum boards
     
    bugfinders likes this.
  5. FoxyWoxy12000

    FoxyWoxy12000

    Joined:
    Aug 12, 2023
    Posts:
    6
    Yeah but how do I setup a "remote Project" because that is the way to fix this and i am new to unity and i dont know how to do this so please tell me how
     
  6. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,560
    That's what I posted above, the part you failed to read.

    Alternately, look into how git works in general, and the concept of remotes.
     
  7. FoxyWoxy12000

    FoxyWoxy12000

    Joined:
    Aug 12, 2023
    Posts:
    6
    ohhh
    sry i didnt understand it like i said im new to unity and thanks for helping i managed to make it work!