Darth Tyllo Posted July 1, 2011 Author Share Posted July 1, 2011 I was trying to add WASD movement to my game when I got an error with a section of code I didn't even tamper with.I get:Run-time error '5':Invalid procedure call or argumentWhen I choose to Debug, the following line of code from ModSound is highlighted:```Set Segment = Loader.LoadSegment(App.Path & MUSIC_PATH & fileName)```Does anyone know what could be the problem? I haven't changed any file paths in the data files folder, so I am at a loss. Link to comment Share on other sites More sharing options...
Darth Tyllo Posted July 12, 2011 Author Share Posted July 12, 2011 Can anyone help me? I cannot edit my source at all without this popping up. Link to comment Share on other sites More sharing options...
MrKris Posted July 12, 2011 Share Posted July 12, 2011 Delete the line and try again. Link to comment Share on other sites More sharing options...
GrimReaperReborn Posted July 12, 2011 Share Posted July 12, 2011 Go back to a version before your WASD movement was added. Test it to make sure it wasn't the WASD that broke it. Add your code one at a time and test each time. See if it triggers the error.I hope you backed up your source before making changes. Link to comment Share on other sites More sharing options...
Darth Tyllo Posted July 20, 2011 Author Share Posted July 20, 2011 Ugh, although I had barely edited my source before I encountered this problem, I have no backup before this version. It could be the fact that "Loader.LoadSegment" is no where else in my client, but I don't know. Also, I've checked the original client source, and it's also the only instance of "Loader.LoadSegment". I'd really not like to have to replace everything, and I have no idea, because it is the only 'Invalid procedure call or arguement' I can think of. Link to comment Share on other sites More sharing options...
Darth Tyllo Posted July 27, 2011 Author Share Posted July 27, 2011 OMG. I downloaded Wabbit's projectile system EO. Once again, I haven't touched ModSound. Again, I'm getting this issue. I have absolutely no idea what is going on, as it didn't give me an error before when I compiled on this same EO, and now that I think of it, this was the first time I even _OPENED_ ModSound in this project. Do you think if I replaced my ModSound with a regular one it'd be fine? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now