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 Thu Apr 18, 2024 3:32 pm
All times are UTC + 0
Shp Vehichle Crash
Moderators: Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [6 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
BySc
Cyborg Artillery


Joined: 07 Jul 2013
Location: Turkey

PostPosted: Fri Jul 07, 2017 7:38 am    Post subject:  Shp Vehichle Crash Reply with quote  Mark this post and the followings unread

Hello everyone. I started to convert free models to shp for public usage but I have a probleam when I try to add new vehicle like on this topic  my game crash after the clicking for build.

Original Model Created By Renafox from sketcfab.
Code:

[HLT]
UIName=NOSTR:Car
Name=auto
Prerequisite=NAWEAP
Strength=100
Category=Transport
Armor=light
DeployTime=.022
TechLevel=1
Sight=8
PipScale=Passengers
Speed=8
CrateGoodie=no
Owner=Russians,Confederation,Africans,Arabs,YuriCountry
AllowedToStartInMultiplayer=no
Cost=0
Points=20
ROT=5
Crusher=no
Turret=no
Passengers=5
IsSelectableCombatant=yes
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
VoiceSelect=
VoiceMove=
VoiceAttack=
VoiceFeedback=
DieSound=GenVehicleDie
AmbientSound=PropagandaTruck
CrushSound=TankCrush
MaxDebris=3
DebrisTypes=TIRE
DebrisMaximums=6
Locomotor={4A582741-9839-11d1-B709-00A024DDAFD1}
MovementZone=Normal
ThreatPosed=0   ; This value MUST be 0 for all building addons
DamageParticleSystems=SparkSys,SmallGreySSys
SpecialThreatValue=1
ZFudgeColumn=10
ZFudgeTunnel=13
ImmuneToRadiation=no
ImmuneToPsionics=no
;Bombable=no
Size=3
SizeLimit=2
Trainable=no
Accelerates=yes

ART Codes

[HLT]
Facings=32
WalkFrames=1
Cameo=



hltruck 0014.png
 Description:
 Filesize:  6 KB
 Viewed:  1332 Time(s)

hltruck 0014.png



Civ HL Truck by Renafox.rar
 Description:

Download
 Filename:  Civ HL Truck by Renafox.rar
 Filesize:  209.36 KB
 Downloaded:  7 Time(s)


_________________

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


Joined: 16 Aug 2006
Location: Germany

PostPosted: Fri Jul 07, 2017 9:31 am    Post subject: Reply with quote  Mark this post and the followings unread

You noticed that you created a 19 MEGABYTE big SHP for a vehicle that needs only 63 kilobyte when done right?
-you haven't used any transparent color. thus the game has 64 640x480 big images with not a single pixel being transparent and thus compressed by the SHP compression.
All frames use the color 1 as background which is shadow and not 0 which is transparent.

-you still have a 640x480 big canvas in the SHP for a tiny 70x60 big vehicle
-shadow frames use color 12 and not color 1

The last 2 are surely not causing a crash, but trying to display a stupidly gigantic 19MB shp can be the cause.

_________________
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
E1 Elite
General


Joined: 28 May 2013

PostPosted: Fri Jul 07, 2017 10:37 am    Post subject: Reply with quote  Mark this post and the followings unread

Plenty of things that can be adjusted here.
- for 32 facing, facings start at North
- in this truck, for north-east, 2 frames are same. Basically only 31 distinct frames
not 32.
- canvas is too large (640x480), it could be smaller. And could be repositioned.
- shp uses index 1 color for background, it should be index 0.
- compression 1 is used, compression 3 could be used. Files size is ~18mb.
- Orange color could have been converted to remap.
- custom palette could be used for the imports.

Attaching the conversion with 1 duplicate frame, no remap. In any case I liked
the truck, a link could be provided to the original asset/model.



CivTrk.jpg
 Description:
 Filesize:  74.79 KB
 Viewed:  1301 Time(s)

CivTrk.jpg



hlt_02.zip
 Description:

Download
 Filename:  hlt_02.zip
 Filesize:  31.67 KB
 Downloaded:  7 Time(s)


Back to top
View user's profile Send private message
BySc
Cyborg Artillery


Joined: 07 Jul 2013
Location: Turkey

PostPosted: Fri Jul 07, 2017 1:56 pm    Post subject: Reply with quote  Mark this post and the followings unread




hlt2.rar
 Description:

Download
 Filename:  hlt2.rar
 Filesize:  182.43 KB
 Downloaded:  7 Time(s)


_________________

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


Joined: 16 Aug 2006
Location: Germany

PostPosted: Fri Jul 07, 2017 2:17 pm    Post subject: Reply with quote  Mark this post and the followings unread

-canvas still too big (can be much more optimized/smaller)
-the rendered frames are already bad and unsuitable for a SHP unit. The rotation increases and decreases in speed from frame 0 to 31. The creator didn't know/forgot how to set the key tangents in 3ds max. For such a rotation it is essential to set a linear tanget to make the rotation angle between each frame exactly the same (11.25° for a 32 facing unit)

-background color is ok. shadow color is wrong, as it's using pure black #12 and not transparent shadow #1

_________________
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
E1 Elite
General


Joined: 28 May 2013

PostPosted: Fri Jul 07, 2017 3:11 pm    Post subject: Reply with quote  Mark this post and the followings unread

Angle between frames is not same. Also having smaller canvas size, helps in
adjusting the position easily. Look at my attachment.

Still 0 and 31 frames are same, duplicates.

In shp, it should start from north and should turn clockwise, not anti-clockwise.
It doesn't crash now though.

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [6 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.1626s ][ Queries: 15 (0.0139s) ][ Debug on ]