Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline SkyMix_RMT  
#1 Posted : Wednesday, October 11, 2017 1:37:42 PM(UTC)
SkyMix_RMT
Major
Joined: 2/21/2015(UTC)
Posts: 386
Portugal

Thanks: 80 times
Was thanked: 132 time(s) in 96 post(s)
So guys, if you are making a map.ini or have one, here's a very important tip:
Never use "ReplaceModule".
Always use "RemoveModule" then "AddModule", "why" you ask?
Well, my entire map.ini for operation kihill beach only used replacemodules, and it works fine. But not always. Sometimes the game will just randomly crash for no reason, sometimes you can't load saves. Sometimes it's unplayable. Untill I deleted every "RemoveModule" and replaced it with "RemoveModule" then "AddModule".

These random crashes have been hapening on my map for almost a year, and I, finnaly. FIXED THE GOD DAMN MAP!

Which means that whoever applied for play testing my map will get their copies soon!! ^-^

Enjoy and happy mapping/modding generals!!!

Edited by user Wednesday, October 11, 2017 5:59:20 PM(UTC)  | Reason: Not specified

Check out:

My Music (Techno/House/Experimental)

My Website (GeneralsCentral)

My Youtube Channel (Inactive)

World Builder Community Discord
thanks 2 users thanked SkyMix_RMT for this useful post.
UTD^Force on 10/17/2017(UTC), AdrianeMapMaker on 10/19/2017(UTC)
Sponsor
Offline AdrianeMapMaker  
#2 Posted : Sunday, October 15, 2017 6:42:11 PM(UTC)
AdrianeMapMaker
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 3/8/2016(UTC)
Posts: 1,156
Philippines

Thanks: 312 times
Was thanked: 185 time(s) in 149 post(s)
thanks for the note
A part of ZH worldbuilders map making community
https://discord.gg/tJ6zyGb

UserPostedImage





Offline Rrtaya_tsamsiyu  
#3 Posted : Monday, October 16, 2017 10:59:19 AM(UTC)
Rrtaya_tsamsiyu
Colonel
Joined: 5/8/2012(UTC)
Posts: 615
United States
Location: USA, Tennessee, Home, Livingroom, couch.

Thanks: 102 times
Was thanked: 194 time(s) in 139 post(s)
Interesting find.
Also, language
one soul at a time
Offline Annihilationzh  
#4 Posted : Monday, October 16, 2017 2:02:56 PM(UTC)
Annihilationzh
General
Joined: 8/2/2008(UTC)
Posts: 1,779
United Kingdom

Thanks: 26 times
Was thanked: 475 time(s) in 331 post(s)
Yup. I mentioned that replace modules were a bad idea in my intro to map.ini

Replace modules take up a lot of unnecessary space, and causes a lot of crashes.
If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.
thanks 2 users thanked Annihilationzh for this useful post.
SkyMix_RMT on 10/16/2017(UTC), UTD^Force on 10/17/2017(UTC)
Offline i^love^mixery  
#5 Posted : Tuesday, October 17, 2017 7:10:13 PM(UTC)
i^love^mixery
Colonel
Joined: 10/13/2008(UTC)
Posts: 782

Thanks: 7 times
Was thanked: 201 time(s) in 147 post(s)
It's a nice feeling to finally fixing a really annoying bug, isn't it? ;)

All the more if it seems fully sporadic.

Edited by user Tuesday, October 17, 2017 7:14:41 PM(UTC)  | Reason: Not specified

Offline Unknown Editor  
#6 Posted : Wednesday, October 18, 2017 4:53:10 AM(UTC)
Unknown Editor
Major
Joined: 3/22/2017(UTC)
Posts: 278
Location: Some where on Earth

Thanks: 123 times
Was thanked: 69 time(s) in 59 post(s)
Don't wanna battle with a high amount of People ...
But for one thing , are you sure ?
I mean I have 95kb INI in which I have used "ReplaceModule" whenever Possible but never got any Random Crashes in this about 5 Months of making my Map .

Sometimes even by Scripts but not INI .

Untile ONCE :
I was Using a Mod (Advanced AI) in which I would take a Random crash once in a while in my Map !

Edited by user Wednesday, October 18, 2017 9:25:19 PM(UTC)  | Reason: Sorry , I mentioned it 3.5 Months , it was about 5 Months ...

Asking is Not a Problem , Problem is Not to Know Something .

Operation : Dark Angel
Static : Launch Delayed
Reason : Uncool Terrain - Old Logic in use - Lack of Performance
Status : Applying new Terrain - Applying new Logic - Increasing Performance by 300%
Offline SkyMix_RMT  
#7 Posted : Wednesday, October 18, 2017 7:31:12 AM(UTC)
SkyMix_RMT
Major
Joined: 2/21/2015(UTC)
Posts: 386
Portugal

Thanks: 80 times
Was thanked: 132 time(s) in 96 post(s)
Originally Posted by: Unknown Editor Go to Quoted Post
I have 95kb INI in which I have used "ReplaceModule"


the INI for Kihill Beach is 185 KB, maybe it starts crashing only when you hit a certain size?
Check out:

My Music (Techno/House/Experimental)

My Website (GeneralsCentral)

My Youtube Channel (Inactive)

World Builder Community Discord
Offline Annihilationzh  
#8 Posted : Wednesday, October 18, 2017 7:41:25 AM(UTC)
Annihilationzh
General
Joined: 8/2/2008(UTC)
Posts: 1,779
United Kingdom

Thanks: 26 times
Was thanked: 475 time(s) in 331 post(s)
Originally Posted by: Unknown Editor Go to Quoted Post
I mean I have 95kb INI in which I have used "ReplaceModule" whenever Possible but never got any Random Crashes in this 3.5 Months of making my Map

It depends on the individual module. Some modules won't crash at all, some crash on startup, others just make the game unstable.

I haven't tested it in years, but IIRC health modules crash every time.
If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.
Offline Unknown Editor  
#9 Posted : Wednesday, October 18, 2017 9:20:16 PM(UTC)
Unknown Editor
Major
Joined: 3/22/2017(UTC)
Posts: 278
Location: Some where on Earth

Thanks: 123 times
Was thanked: 69 time(s) in 59 post(s)
Originally Posted by: Annihilationzh Go to Quoted Post

It depends on the individual module. Some modules won't crash at all, some crash on startup, others just make the game unstable.

I haven't tested it in years, but IIRC health modules crash every time.


Well , to be honest whatever I have added as NEW I tested at the Time but I don't really think "ReplaceModule" could cause much Trouble , You know : Most the Starting or Game Loading causes were UNSTABLE in all the Cases (even when used "Add/RemoveModule").

Some things that C&C Excellent GAME ENGINE (I really like it , not making fun of) could not Support and do the Orders for Sad

But I replaced most of them with sth More EFFICIENT (in Size & of Course WORK) Big Smile
Some of them also should just have been Removed to let the others Work Ashamed

However much more of Random Crashes or Mismatches were done by the Scripts in my Map ...
Stay away from this Scripts , they are Dangerous Cool

But seriously my map has almost everything , Just look at the Index here :

Edited by user Wednesday, October 18, 2017 9:26:08 PM(UTC)  | Reason: Setting a Reason for Edit :D

Asking is Not a Problem , Problem is Not to Know Something .

Operation : Dark Angel
Static : Launch Delayed
Reason : Uncool Terrain - Old Logic in use - Lack of Performance
Status : Applying new Terrain - Applying new Logic - Increasing Performance by 300%
Offline BacardiCoke  
#10 Posted : Saturday, October 21, 2017 5:03:10 AM(UTC)
BacardiCoke
Private
Joined: 9/27/2017(UTC)
Posts: 14
Germany
Location: Berlin

How I must fix it in my ini? I am a absolut beginner ^^
Or can everyone fix it for me please?


Mig part with the napalm migs for nuke general not working in moment
Offline SkyMix_RMT  
#11 Posted : Saturday, October 21, 2017 7:18:06 AM(UTC)
SkyMix_RMT
Major
Joined: 2/21/2015(UTC)
Posts: 386
Portugal

Thanks: 80 times
Was thanked: 132 time(s) in 96 post(s)
Originally Posted by: BacardiCoke Go to Quoted Post
How I must fix it in my ini? I am a absolut beginner ^^
Or can everyone fix it for me please?


Mig part with the napalm migs for nuke general not working in moment



Instead of having:


Object TechOilDerrick

ReplaceModule ModuleTag_03
Body = ActiveBody ModuleTag_03_Override
MaxHealth = 1975.0 ; original = 2000.0
InitialHealth = 1975.0 ; original = 2000.0
End
End



You need to have this:



Object TechOilDerrick

RemoveModule ModuleTag_03
AddModule
Body = ActiveBody ModuleTag_03_Override
MaxHealth = 1975.0 ; original = 2000.0
InitialHealth = 1975.0 ; original = 2000.0
End
End

Edited by user Saturday, October 21, 2017 7:20:31 AM(UTC)  | Reason: Not specified

Check out:

My Music (Techno/House/Experimental)

My Website (GeneralsCentral)

My Youtube Channel (Inactive)

World Builder Community Discord
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.