• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Few noob question (variables, doodas)

Status
Not open for further replies.
Level 17
Joined
Nov 13, 2006
Messages
1,814
1. why dont appear the texture if example if i use a doodas or tree model for unit model
example:
Doodads\Terrain\AshenTree\AshenTree.mdl - this missing model
Doodads\Terrain\CityscapeTree\CityscapeTree0S.mdl -this white texture
if i want use for paladin

2. what is the maximum value for integer/real, so what is the maximum number what i can store to variable (coz i see gold cant be more than 10^9)?
 
Level 2
Joined
Aug 5, 2010
Messages
24
trees as doodads dont work since the tree models dont have a texture. That is done in the destructible tab Art:replacable textures if you want a tree to have textures you propably have to make a custom model that comes with the desire texture. Atleast i think thats how it all works
 
Level 14
Joined
Apr 20, 2009
Messages
1,543
@LordBacon:

I guess you're referring to something similar to this?:

http://www.hiveworkshop.com/forums/general-mapping-tutorials-278/new-trees-world-editor-150515/

Which is in fact possible...

@shadowvzsL

1: A texture is blp or tga format, not mdl. A doodad can not be used as a unit model unless altered.
(As far as I've learned from personal experiences, the doodad models have textures applied to them within the model file. Which is impossible for units if I recall correctly.
But it might be better talking about this with a modeling expert...)

2: I have absolutely no idea, but it might be 8192 digits long ^.^ (Not sure though)
 
Level 17
Joined
Nov 13, 2006
Messages
1,814
I'm pretty sure that is not possible. 2^34 causes an overflow. The calculation will produce a wrong result.

ok so, example the 256 x 256 map is 256000 x 256000 if we use coordinate?

because if yes then if we want calculate distance between 2 point on map, and a unit is on top/left corner, b unit is bottom/right corner then distance calculation could cause problem , since 256000^2 is higher than 2^31.

or that 256 x 256 or 496 x 496 got 1:100 ratio when we use coordinates?
 
Level 37
Joined
Mar 6, 2006
Messages
9,240
Max map size is 480x480 tiles. Max coordinate values are thus 480*128/2=30720.

Max distance is Squareroot( (30720-(-30720))^2 + (30720-(-30720))^2 )
The max value that is used is (30720-(-30720))^2*2 = 7 549 747 200
That is much less than 2^32/2, so no problems there.
 
Level 17
Joined
Nov 13, 2006
Messages
1,814
Max map size is 480x480 tiles. Max coordinate values are thus 480*128/2=30720.

Max distance is Squareroot( (30720-(-30720))^2 + (30720-(-30720))^2 )
The max value that is used is (30720-(-30720))^2*2 = 7 549 747 200
That is much less than 2^32/2, so no problems there.

ups right, i calculated area, not distance when i made (480*128)^2 :D ty
 
Status
Not open for further replies.
Top