Weird Issue (Probably simple)
by Dustin Mullen · in Technical Issues · 05/09/2008 (5:10 pm) · 12 replies
For some reason, my engine (osx version) does not seem to want to recognize that I have added new weapons to the game. The game will allow me to mount, add in creator, and pretty much do anything else with the new weapon, but it will not allow me to pick up ammo or fire the weapon. I tested the problem with the m16 (soldier pack) and followed the direction on how to install it correctly.
I think it may have a problem with the Ammo HUD I added. Although, I can fire the crossbow without any problems. I also tried to delete the player.cs.dso file, but the engine crashes if I do so.
Any ideas?
I think it may have a problem with the Ammo HUD I added. Although, I can fire the crossbow without any problems. I also tried to delete the player.cs.dso file, but the engine crashes if I do so.
Any ideas?
#2
05/09/2008 (8:18 pm)
Yes I did add that which is why I can't figure out why it will only allow me to use the crossbow.
#3
05/09/2008 (9:33 pm)
What do you mean the engine crashes if you delete player.cs.dso? If you mean exactly what you said (ie. you delete the file and then attempt to load the engine), then something is wrong in your current player.cs and your changes are not being loaded.
#4
Torque usually produces a very helpful error message if it fails to compile a script.
As William said if it can't compile a cs file it looks for a dso to load if it can't find a dso it may crash if later scripts require the failed scripts.
05/10/2008 (5:17 am)
Check your console log for where torque tried to compile the player.cs script.Torque usually produces a very helpful error message if it fails to compile a script.
As William said if it can't compile a cs file it looks for a dso to load if it can't find a dso it may crash if later scripts require the failed scripts.
#5
In your example folder there is a .bat file which deletes all the DSO's. Its a good idea after you make changes to delete your DSO's and recompile.
Are you using the starter.fps or the tutorial.base?
Lucus
05/10/2008 (1:06 pm)
Try deleting all of your DSO's.In your example folder there is a .bat file which deletes all the DSO's. Its a good idea after you make changes to delete your DSO's and recompile.
Are you using the starter.fps or the tutorial.base?
Lucus
#6
I'm going to try to delete my dso's as lucus said later tonight. I'll let you know how that goes.
Thanks guys.
05/10/2008 (5:19 pm)
I checked my console log. No errors. What I mean is that it crashes is that... well it crashes. It exits itself and gives the error: An unexpected error has occurred and if I want to send it to apple.I'm going to try to delete my dso's as lucus said later tonight. I'll let you know how that goes.
Thanks guys.
#7
I ran into some problomes simular when I first started using torque. I started using the tutorial.base and tried implimenting the soldier pack in tutorial.base and had lots of problems. So i pluged it into starter.fps and it worked flawless.
So if you are using tutorial.base I suggest you use the starter.fps.
It might solve your problomes.
Lucus
05/10/2008 (6:13 pm)
DustinI ran into some problomes simular when I first started using torque. I started using the tutorial.base and tried implimenting the soldier pack in tutorial.base and had lots of problems. So i pluged it into starter.fps and it worked flawless.
So if you are using tutorial.base I suggest you use the starter.fps.
It might solve your problomes.
Lucus
#8
Though I am responding here to nudge you along.. this problem was solved somewhere in the forums already.
There was another dev that had this same issue.. or maybe it was several. I read everything the forum has in every category so i know for sure it's been addressed and fixed.
Wish I had the link right now to paste it here.
I'll edit this post when I find it.
Ok, this isn't exactly the post i meant. But it covers 3 weapons and explains everything in detail
www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=6221
05/10/2008 (8:24 pm)
Dustin, the Crossbow is hard coded into the engine which is why it works and others do not.Though I am responding here to nudge you along.. this problem was solved somewhere in the forums already.
There was another dev that had this same issue.. or maybe it was several. I read everything the forum has in every category so i know for sure it's been addressed and fixed.
Wish I had the link right now to paste it here.
I'll edit this post when I find it.
Ok, this isn't exactly the post i meant. But it covers 3 weapons and explains everything in detail
www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=6221
#9
Scott: When I try to get to the resource I get this error:
Service Unavailable
The server is temporarily unable to service your request. Please try again later.
Reference #6.8f7ffea5.1210537535.b0da44d
I cleared my cache and tried it on IE and firefox, but with no luck. I'll try it again later.
05/11/2008 (1:26 pm)
Lucus: I am using the starter.fps. So, that rules that possibility out.Scott: When I try to get to the resource I get this error:
Service Unavailable
The server is temporarily unable to service your request. Please try again later.
Reference #6.8f7ffea5.1210537535.b0da44d
I cleared my cache and tried it on IE and firefox, but with no luck. I'll try it again later.
#11
05/12/2008 (1:18 pm)
Are you sure there's nothing wront the the .cs? Not even a missed semicolon, or bracket? Since the engine can't compile the player.cs file, there is a problem with it (or the engine.) Triple check your work to make sure you didn't leave something out. That's the only thing I can think of. You didn't edit the engine C++, did you?
#12
Of course, I don't know if there's an equivalent to this on the Mac side. Double check your log around where it says it's executing the .cs and see if it has any errors or mentions anything about something it can't interpret. Otherwise I would run it through debug and step through it until it breaks.
05/12/2008 (1:30 pm)
If there's nothing wrong with your .cs as far as syntax goes, it's possible there's been some binary garbage added to the file. I had this exact same thing happen with a co-worker who wrote a new script for a new weapon by modifying one of my old scripts, only he was doing all his editing in notepad and it added some binary garbage to the beginning of the file. This of course made Torque crash.Of course, I don't know if there's an equivalent to this on the Mac side. Double check your log around where it says it's executing the .cs and see if it has any errors or mentions anything about something it can't interpret. Otherwise I would run it through debug and step through it until it breaks.
Torque Owner Mike Rowley
Mike Rowley
In server/scripts/player.cs:
in the function datablock PlayerData
If it's not set in the inventory, tge won't allow you to have it.