URGENT Modding Questions!

Get some help with creating maps or modding.
Need a map editor or other tools, look here!
User avatar
Olrox
Art contributor
Posts: 1999
Joined: 03 Jul 2007, 19:10

Re: Modding Questions

Post by Olrox »

Buginator wrote:
Olrox wrote:I'll PM you a useful how-to that Mysteryem wrote for me some time ago...
Why not throw it up on the wiki, so everyone can benefit from this?
I'll give it some finishing and do that.

BTW, what happened to Mysteryem? Too busy with RL? I remembered that he mentioned he would have even less time for WZ this year, but he's vanished!(at least from the forums, that is O_o )

~Olrox
User avatar
Buginator
Professional
Professional
Posts: 3285
Joined: 04 Nov 2007, 02:20

Re: Modding Questions

Post by Buginator »

Olrox wrote: I'll give it some finishing and do that.

BTW, what happened to Mysteryem? Too busy with RL? I remembered that he mentioned he would have even less time for WZ this year, but he's vanished!(at least from the forums, that is O_o )

~Olrox
Dunno. I haven't seen him around.
and it ends here.
Vecmoroc
Trained
Trained
Posts: 44
Joined: 15 Feb 2010, 22:05

Re: Modding Questions

Post by Vecmoroc »

Not to be bothersome, but was anyone going to respond to my other questions?
User avatar
Zarel
Elite
Elite
Posts: 5770
Joined: 03 Jan 2008, 23:35
Location: Minnesota, USA

Re: Modding Questions

Post by Zarel »

Vecmoroc wrote:Well, I wasn't trying to add any new models or such, since I don't think I'm anywhere near that good yet lol. What I was trying to do there was merely copying the lines for the dragon body, and then altering the name to superbody, and since it's already listed in the body.txt, I thought that would work, though as I said, it crashed the game when I tried.
To be exact, it aborted the game, it didn't crash the game. What error message did you get? You may need to put Warzone in windowed mode to get the error message.

I'm not sure what you did here. Did you create a new row, and name it the same thing as an existing entry of body.txt? You can't have two bodies with the same ID...
Vecmoroc wrote:Another thing, in terms of the research, the main thing I want to figure out is to, if possible, be able to add something like one of the 'superweapons' to be researchable. I know I can get them with the cheat "give all", but being as that then replaces many of the other advanced weapons with low-grade ones, I wanted to be able to get just the superweapons, and I figure that adding it as a component to some research item would work best, but I don't know how to do that correctly. If there were some easier method, I'd be fine with that, but research is the best idea I have.
Go to research.txt and add a research item. Put a "1" in the "result component" column, and "0" in the other result columns.

Go to resultcomponent.txt and copy one of the other weapon researches, replacing the research item with your research item and the weapon with your weapon.
Vecmoroc wrote:I don't know how realistic this is, but perhaps it's possible to just extend how many weapons can be displayed when in the design screen? For the bodies, I noticed that, even when given everything possible with the "give all" cheat, that you could browse through everything, so I was curious as to whether this same thing could be applied to the turrets without too much difficulty? At least then I wouldn't need to worry about figuring out the research stuff lol.
Would be lots of work. We'll do it at some point, but not anytime soon.
Vecmoroc
Trained
Trained
Posts: 44
Joined: 15 Feb 2010, 22:05

Re: Modding Questions

Post by Vecmoroc »

Zarel wrote:[
To be exact, it aborted the game, it didn't crash the game. What error message did you get? You may need to put Warzone in windowed mode to get the error message.
Actually, it DID crash the game. The only way I could get out of it was force quit, otherwise it just stayed stuck at the loading screen.

Still, thanks for responding, and while I've still to fully try the research stuff you suggested, I'm certainly glad to have that information :)
User avatar
Zarel
Elite
Elite
Posts: 5770
Joined: 03 Jan 2008, 23:35
Location: Minnesota, USA

Re: Modding Questions

Post by Zarel »

Vecmoroc wrote:Actually, it DID crash the game. The only way I could get out of it was force quit, otherwise it just stayed stuck at the loading screen.
In other words, it froze the game, it didn't crash the game? That would've been useful to know. :P

I can't think of any stats issue that would do that. Have you tried playing in windowed mode? That is sometimes more stable.
Vecmoroc
Trained
Trained
Posts: 44
Joined: 15 Feb 2010, 22:05

Re: Modding Questions

Post by Vecmoroc »

If a game stops working, I generally consider it crashing myself, although I'll try to be more specific from now on to avoid confusion lol
Vecmoroc
Trained
Trained
Posts: 44
Joined: 15 Feb 2010, 22:05

Re: Modding Questions

Post by Vecmoroc »

Well, I tried the research thing, but then I got the error message shown in the picture that I included with this. Point being, I'm not sure what I did wrong, so perhaps you could help me?
You do not have the required permissions to view the files attached to this post.
User avatar
Zarel
Elite
Elite
Posts: 5770
Joined: 03 Jan 2008, 23:35
Location: Minnesota, USA

Re: Modding Questions

Post by Zarel »

Vecmoroc wrote:If a game stops working, I generally consider it crashing myself, although I'll try to be more specific from now on to avoid confusion lol
For most purposes, that's enough, but if you're actually trying to figure out why it's doing it, details are really useful. ;)
Vecmoroc wrote:Well, I tried the research thing, but then I got the error message shown in the picture that I included with this. Point being, I'm not sure what I did wrong, so perhaps you could help me?
Well, add it to messages/names/strings.txt
Vecmoroc
Trained
Trained
Posts: 44
Joined: 15 Feb 2010, 22:05

Re: Modding Questions

Post by Vecmoroc »

Sorry, but where would I find those? I've done a search on my computer, and it can't come up with any of those.
User avatar
Zarel
Elite
Elite
Posts: 5770
Joined: 03 Jan 2008, 23:35
Location: Minnesota, USA

Re: Modding Questions

Post by Zarel »

Vecmoroc wrote:Sorry, but where would I find those? I've done a search on my computer, and it can't come up with any of those.
Erm, you can find body.txt and weapons.txt, can't you? Go up one level. You'll see a directory called "messages".
Vecmoroc
Trained
Trained
Posts: 44
Joined: 15 Feb 2010, 22:05

Re: Modding Questions

Post by Vecmoroc »

Oh, I don't know how I missed that lol XD.

Anyways, I went ahead and put it in to the names.txt, as you said, but now I've receiving the error message in the picture below. I DO know where the wrf file is, but I don't know what it is that I need to do to it to solve this problem. If you could explain what do, I'd appreciate it.
You do not have the required permissions to view the files attached to this post.
User avatar
Zarel
Elite
Elite
Posts: 5770
Joined: 03 Jan 2008, 23:35
Location: Minnesota, USA

Re: Modding Questions

Post by Zarel »

You'll notice how the error message says "Please check your <config dir>/logs/WZlog file for more details"?

Yeah, you should check your <config dir>/logs/WZlog file for more details.

(Also, as a hint, you should generally read the entire error message before asking for help.)
Vecmoroc
Trained
Trained
Posts: 44
Joined: 15 Feb 2010, 22:05

Re: Modding Questions

Post by Vecmoroc »

Alright, after looking at the logs, I did figure it out and FINALLY got it to work lol, so thank you for all the help :) And I realize that I've been asking a lot of questions, but A, I wasn't sure how to find where the logs were originally, and B, I didn't want to mess up something real bad in the game, so I thought it was better to ask to make sure I'm not doing anything seriously wrong, than to potentially, permanently break the game. I don't know whether that can even be done, but I sure do not want to find out lol
Vecmoroc
Trained
Trained
Posts: 44
Joined: 15 Feb 2010, 22:05

Re: Modding Questions

Post by Vecmoroc »

Actually, I have another issue that just came up. I'm trying to put a weapon into the game, but whenever I try to do "research all" to give me it (since I set it up so that it's researchable), I find this in the logs:

--- Starting log ---
error |09:35:27: [checkResearchStats] checkResearchStats: Invalid Comp Result for topic R-Wpn-WraithLaser
error |09:35:27: [checkResearchStats] Assert in Warzone: /Users/dak180/Applications/Build/wz2100/tags/2.3_rc1a/macosx/../src/research.c:2772 (asResearch[resInc].pArtefactResults[inc] != ((void *)0)), last script event: 'N/A'
error |09:35:27: [checkResearchStats] checkResearchStats: Invalid Comp Result for topic R-Wpn-WraithLaser
error |09:35:27: [checkResearchStats] Assert in Warzone: /Users/dak180/Applications/Build/wz2100/tags/2.3_rc1a/macosx/../src/research.c:2772 (asResearch[resInc].pArtefactResults[inc] != ((void *)0)), last script event: 'N/A'

Perhaps you could help me figure out what I've done wrong here?