Project Perfect Mod Forums
:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::


The time now is Sat Apr 20, 2024 3:12 pm
All times are UTC + 0
game ignoring DebrisMaximums
Moderators: Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [9 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
XxpeddyxX
Commander


Joined: 03 Sep 2004

PostPosted: Tue Aug 18, 2015 12:49 pm    Post subject:  game ignoring DebrisMaximums Reply with quote  Mark this post and the followings unread

Hey guys, can't seem to get my head around this, my unit(s) have custom debris and whenever I set the min/max from 1/2 to something higher they sometimes spawn 2 of the same debris even though my code shows as follows:

Code:
MinDebris=1
MaxDebris=2
DebrisTypes=LTTNKTURRET,LTTNKBODY
DebrisMaximums=1,1


If I tried Min as 2 and Max as 3 sometimes I get 2 turrets, 2 bodies etc. I just want it to spawn both at the same time, or occasionally just spawn 1.

Min1,Max2 currently only spawns 1 OR the other.

Back to top
View user's profile Send private message
Lin Kuei Ominae
Seth


Joined: 16 Aug 2006
Location: Germany

PostPosted: Tue Aug 18, 2015 1:52 pm    Post subject: Reply with quote  Mark this post and the followings unread


_________________
SHP Artist of Twisted Insurrection:  Nod buildings

Public SHPs
X-Mech Calendar (28 Mechs for GDI and Nod)
5 GDI, 5 Nod, 1 Mutant, 1 Scrin unit, 1 GDI building

Tools
Image Shaper______TMP Shop______C&C Executable Modifier

Back to top
View user's profile Send private message
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Tue Aug 18, 2015 4:53 pm    Post subject: Reply with quote  Mark this post and the followings unread

I didn't know it was a comma separated list, but I think it's the fact that it is random 0-1 applied to such a small total. If the max turns out to be 2, and both are the same, but you've limited it to one of each, you get 1. If you only get the min debris, you also get 1. Most circumstances will lead to 1.

Use larger min like 3 and max like 5 ?

_________________
http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai

Back to top
View user's profile Send private message
XxpeddyxX
Commander


Joined: 03 Sep 2004

PostPosted: Tue Aug 18, 2015 11:42 pm    Post subject: Reply with quote  Mark this post and the followings unread

Thanks LKO, but I thought art debris can't spawn voxel debris?

_________________

ayylmao on Discord

Back to top
View user's profile Send private message
ApolloTD
Commander


Joined: 19 Nov 2003

PostPosted: Wed Aug 19, 2015 5:09 am    Post subject: Reply with quote  Mark this post and the followings unread

XxpeddyxX wrote:
Thanks LKO, but I thought art debris can't spawn voxel debris?


Correct, LKO missed that its voxel debris here Smile
You can spawn voxel debris as you already are doing or by warhead only.

Granted, it may be feasible to use some dummy warheads that create the wanted debris only 1 each and hook those warheads into anim or invisible art debris but thats a lot of bloat coding for something so simple.

Back to top
View user's profile Send private message
XxpeddyxX
Commander


Joined: 03 Sep 2004

PostPosted: Wed Aug 19, 2015 11:26 am    Post subject: Reply with quote  Mark this post and the followings unread

ApolloTD wrote:
XxpeddyxX wrote:
Thanks LKO, but I thought art debris can't spawn voxel debris?


Correct, LKO missed that its voxel debris here Smile
You can spawn voxel debris as you already are doing or by warhead only.

Granted, it may be feasible to use some dummy warheads that create the wanted debris only 1 each and hook those warheads into anim or invisible art debris but thats a lot of bloat coding for something so simple.
I'll give it a go, how does one spawn voxel debris with warheads? I thought they only used Min/MaxDebris and it was from the (shp) list under [General].

Back to top
View user's profile Send private message
XxpeddyxX
Commander


Joined: 03 Sep 2004

PostPosted: Thu Aug 20, 2015 5:06 am    Post subject: Reply with quote  Mark this post and the followings unread

The only way I could get this done was by using voxel and shp debris, though 2 turrets still spawn occasionally. The Code states a max of 1 can spawn though, not sure what went wrong.

artmd.ini code:
Code:
Bouncer=yes
Spawns=LTTNKTURDEB
SpawnCount=1



output_8scJVP.gif
 Description:
 Filesize:  1.82 MB
 Viewed:  1009 Time(s)

output_8scJVP.gif



Back to top
View user's profile Send private message
ApolloTD
Commander


Joined: 19 Nov 2003

PostPosted: Thu Aug 20, 2015 7:41 am    Post subject: Reply with quote  Mark this post and the followings unread

Hmm, I woulda just used 1 frame dummy shp to do damage=1, warhead with debristypes= and set debrisminimums/maximums but not sure if that obey either but 1 frame shp should make it fire only once the warhead however.

Back to top
View user's profile Send private message
XxpeddyxX
Commander


Joined: 03 Sep 2004

PostPosted: Thu Aug 20, 2015 8:18 am    Post subject: Reply with quote  Mark this post and the followings unread

I tried that, DebrisTypes doesn't work on warheads, I think warheads only allow MinDebris and MaxDebris, which take a random debris from the MetallicDebris list.

_________________

ayylmao on Discord

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [9 Posts] Mark the topic unread ::  View previous topic :: View next topic
 
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © phpBB Group

[ Time: 0.1562s ][ Queries: 14 (0.0102s) ][ Debug on ]