Forums Index >> Modding >> ModWiz: Need help adding the lines of code to the ...



Page : <1> :


I followed the directoins exactly how they were stated, but after I add the lines of coding to the bottom of 'main.cs' I try to open ThinkTanks and I get a "virtual memory error". It's really driving me crazy... :( so anybody with experience out there, your help would be appriciated.


I used to eat a lot of natural foods until I learned that most people die of natural causes.

Monday, June 19, 2006 at 11:26:56 AM

Make sure you copied the lines of code exactly. That error means the main.cs is screwed up.

Monday, June 19, 2006 at 4:40:31 PM

Doesn't -virtual memory error- mean that your computer cannot load TT because of too less space on RAM? (not sure)
---
Nevertheless - Yark, try to copy the last piece of your main.cs here. (or e-mail it to someone)

 

 

 

 

Monday, June 19, 2006 at 10:05:15 PM

I always have used 'copy and paste'. Could somebody e-mail me a copy of their 'main.cs' file?


I used to eat a lot of natural foods until I learned that most people die of natural causes.

Tuesday, June 20, 2006 at 7:45:11 AM

Always make backups of files before changing them. Particularly important stuff. :)

However you can try a few things:
Erase the line you added. Save.
Start in dedicated server mode, see what those errors say, and post the error output here.
dowload the shockwave demo version and use their main.cs—I think it'd work without a problem (It might be the garagegames demo... I forget right off hand).

And are you using warfare's modwizard or -z-'s modwizard?

Tuesday, June 20, 2006 at 2:18:59 PM

I was previously using -z-'s but I changed to Warfare's and removed -z-'s files. Regardless; neither worked, and they both gave me the same error.


I used to eat a lot of natural foods until I learned that most people die of natural causes.

Tuesday, June 20, 2006 at 7:20:27 PM

Like ^^ said, start a dedicated server and see what you get.

If you get the same virtual memory error when starting a dedicated server then TT is basically screwed. If that happens you should reinstall.

Tuesday, June 20, 2006 at 7:45:54 PM

Okay. You answered one question. That is a start

Could you PLEASE post the last... Say... 20 lines... Of your main.cs here?
OR/AND
you can post the dedicated console output when you try to start TT.

I would like to know what is wrong with it and help you fix it, but sadly PTT doesn't give me your IP so I can't find out for you :) (j/k). My point being that if you don't try what we tell you, we can't help you.

Last edited: Tuesday, June 20, 2006 at 8:51:25 PM

Tuesday, June 20, 2006 at 8:50:51 PM

Here they are

 

ÿ¨ QDÿG PF :B % )¬,=$ )$ ) ÿ
ÿ× QG :QDÿŒ PF :QF :
ÿô QDÿº PF :QF :QG :
QE PF :
% 6 ? H ¬ Q Z ! C * t + } , † - . ˜ / ¡ 0 ª 1 ³ 2 ¼ : Í C Ó H ü K M N O / T = U F V L Y Z e [ k ^ { _ „ ` c d ¦ e ¬ h ¼ I Å j Ë m Û n ä o ê r ú s t w x " y ( | 8 } A ~ G W ‚ ` ƒ n „ s … ƒ † • ‰ Ÿ Á ‘ Ç ’ Ð — Þ ™ ç š í R ù C é ; ä 4 ã - Ø ï ( Ì » Ã D % ë © ç È â
O † c J +
í Î ¯ n É I h ½ : o ´ , u ¯
X 9 û Ü ½ ž | ] > £ ¬ — ± 5 ” ´ « ˜ ‹ f M. ð Ñ ² “ q R 2 $
Š ö þ „ ð ¤ ‰ } Ð ð Ä ÿ v É ö Ú ½ ø j Ç Ï [ n Q B 0 4 ) Ò
 Á ¸ ¯ ¦ ” ‹ ‚ y h V M D ; * !
exec("common/editor/main.cs");

 

I'm supposed to add the line to the VERY bottom right? Or does it mean the bottom of the area in the file that is readable?


I used to eat a lot of natural foods until I learned that most people die of natural causes.

Last edited: Wednesday, June 21, 2006 at 10:44:20 AM

Wednesday, June 21, 2006 at 10:42:39 AM

The file you edited had a.dso extension, didn't it? The name was "main.cs.dso", right? If so, then I know what you did wrong. Delete the line from main.cs.dso, and see if TT launches. If it does't, delete main.cs.dso.

If you did EITHER of those things, find main.cs (should be in your the root of your TT folder) and add the line to the bottom of that. Now see if TT starts.

Your problem was you edited a file that the compiler in TT had already converted to machine code. The machine code in DSO files is not meant to be read, written, or modified by intelligent lifeforms. One should not try to edit a DSO unless one knows exactly what one is doing and has several backups. The problem with messing with DSO's is that TT doesn't expect an error, and when it encounters one, it totally freaks out.

Good Luck!

Wednesday, June 21, 2006 at 1:47:06 PM

Ah, I found it! Thank you very much!


I used to eat a lot of natural foods until I learned that most people die of natural causes.

Thursday, June 22, 2006 at 7:28:01 AM

No problem, happy modding!

Thursday, June 22, 2006 at 8:10:39 AM

Oh wait, it's still not working, I mean, I installed the Never End Dwonload Bar and that works fine, but modwiz is just not working at all.


I used to eat a lot of natural foods until I learned that most people die of natural causes.

Thursday, June 22, 2006 at 8:13:01 AM

At least TT works, right? :) Did you copy the exec line into the correct main.cs? If you did and it still isn't working, try reinstalling modwizard. If THAT doesn't work, post the exec line (and 4 lines around it in both directiosn) in main.cs here.

 

Thursday, June 22, 2006 at 8:28:12 AM

Yeah, I'm happy that TT can actually load now, I'll try reinstalling.


I used to eat a lot of natural foods until I learned that most people die of natural causes.

Thursday, June 22, 2006 at 8:58:49 AM

Go to the part of the site that says "Other Stuff" for the original download of main.cs

Located on bottom left of the little links.

Thursday, June 22, 2006 at 1:34:15 PM

I reinstalled it and it worked! Thank you all so much for the help!


I used to eat a lot of natural foods until I learned that most people die of natural causes.

Friday, June 23, 2006 at 12:13:48 PM

Page : <1> :

insert quote insert url insert email insert image bold italic underline superscript subscript horizontal rule : : Help on using forum codes

Add comment:

HTML is disabled within comments, but ZBB Code is enabled.

Back to the top

Web site designed, maintained and funded by -z- and Dan MacDonald