Modding SP -1 reply

Please wait...

>Omen<

Modern Warfare

50 XP

1st January 2005

0 Uploads

7,395 Posts

0 Threads

#31 13 years ago

Slight problem with using Programmers Notepad. It will open already extracted files such as COD2's gsc files fine, when I try to open an iwd however I get a lot of symbols rather than text like any zip extractor shows. I tried adding both .iwd and .zip extentions in the file association settings but still same results.




Tally

COD Über Support

50 XP

20th November 2004

0 Uploads

3,439 Posts

0 Threads

#32 13 years ago

LoL yeah, you cannot use it to open a compressed file. It doesnt work like WinZip or WinRaR. Its only for script formats - gsc, cfg, orc, str, etc.




>Omen<

Modern Warfare

50 XP

1st January 2005

0 Uploads

7,395 Posts

0 Threads

#33 13 years ago

OK, thanks, I kinda figured that was the case. I guess it's not so bad if you hunt for what you want to change with a zip tool, then extract it once you find it. I don't think any of my mod script has errors, but how do you know if Programmers Notepad finds one via C++? Does it label them, highlight them in a certain color, etc?




Tally

COD Über Support

50 XP

20th November 2004

0 Uploads

3,439 Posts

0 Threads

#34 13 years ago

One important advantage that Programmers Notepad over Wordpad - it has line numbers!

When running your scripts, always test in developer mode 2. This will tell you the exact error - and line number.




>Omen<

Modern Warfare

50 XP

1st January 2005

0 Uploads

7,395 Posts

0 Threads

#35 13 years ago
tally;3402177One important advantage that Programmers Notepad over Wordpad - it has line numbers! When running your scripts, always test in developer mode 2. This will tell you the exact error - and line number.

OK, seems to be yet another thing I can't figure out or find answers to on my own. After checking the help file, looking through the settings, Googling, even searching the PN forum, I found nothing about how to use Developer Mode 2. The closest I came to finding what you're talking about is merely enabling line numbers via the View tab, but still nothing that talks of showing errors. I see a "Modula-2" in the list of schemes, but it doesn't appear to be what you're referring to. How exactly does developer mode 2 and C++ tell you the exact error, via an added notation with line # included?




Mr. Ifafudafi

¯\(º_O)/¯

50 XP

22nd November 2006

0 Uploads

90 Posts

0 Threads

#36 13 years ago

No, he means in Call of Duty 2, not PN. Under the console, type: "developer 2" And whenever you get a script error, it will say the line number. You can then close CoD2 and open PN to edit the script.




>Omen<

Modern Warfare

50 XP

1st January 2005

0 Uploads

7,395 Posts

0 Threads

#37 13 years ago
Mr. Ifafudafi;3408865No, he means in Call of Duty 2, not PN. Under the console, type: "developer 2" And whenever you get a script error, it will say the line number. You can then close CoD2 and open PN to edit the script.

LOL, thanks, that sounds easy enough. One question though, will I be left in dev 2 mode after doing this, do I need to type something else to exit dev 2 mode?




Mr. Ifafudafi

¯\(º_O)/¯

50 XP

22nd November 2006

0 Uploads

90 Posts

0 Threads

#38 13 years ago

If you use the "seta" command ("seta developer 2") then it'll stay, and you'll need to set it back to 0. But otherwise, it'll reset every time you restart the game.




>Omen<

Modern Warfare

50 XP

1st January 2005

0 Uploads

7,395 Posts

0 Threads

#39 13 years ago
Mr. Ifafudafi;3410511If you use the "seta" command ("seta developer 2") then it'll stay, and you'll need to set it back to 0. But otherwise, it'll reset every time you restart the game.

"Otherwise" meaning there's another way to do it other than the seta command? Do you mean I can just type developer 2 instead and it will go back to non developer mode at next launch of the game without a manual reset?




Mr. Ifafudafi

¯\(º_O)/¯

50 XP

22nd November 2006

0 Uploads

90 Posts

0 Threads

#40 13 years ago

Correct. Typing in simply the cvar and the new value will act as a "set" command, which applies until the game restarts.