#compiler issues with scripts

1 messages · Page 1 of 1 (latest)

dark badge
#

currently im working on a school project, but for some reason the scripts would be removed from any prefab or objects that had a script, and say there was a compiling issue(screen shot 1), it works perfectly fine with one another teammate but alot of us are having similar issues. this issue started to pop up after a big update for data persistence was added. it worked perfectly fine before that.

so first it would look like screen shot 1, then when i would removed something then save(it doesnt matter what i add or remove as long as i save/reload), the script would show up again and work fine, then after testing and ending the scene by quitting or ending the scene the script would disappear and say there were issues like in screen shot 1.

meager solar
#

this looks like metafiles going missing to me but I don't know why they would be vanishing after reload. How are your teammates sharing the project exactly? If you're using some kind of shared drive, that's usually a bad idea

#

without more detail, my best guess is you're using something like google drive and people are overwriting the script meta files unintentionally. If that's the case, you need to to use proper source control

dark badge
meager solar
#

are you committing the meta files as well?

dark badge
# meager solar are you committing the meta files as well?

Im pretty sure i would have to check in the afternoon when im on my system again, before it worked normally though, we would push prefabs perfectly, then after one teammate working on persistence pushed an update it started to mess up.

meager solar
#

make sure the guids aren't changing. Other thing is the warning seems off to me. Did anyone dump any assemblies into the project? Specifically Assembly-CSharp

sonic ruin
dark badge
dark badge
#

It looks like thats what probably happened

#

Im not entirely sure tbh tho, since im very new to this but if it did is there a way to fix it?

meager solar
#

if you didn't commit meta files, then the fix is to make sure you do and then fix every missing script in the project

#

if that one guy still has "working" scripts, he's probably the last one that committed anything and you should have him do it