Starofdeath Posted September 7, 2015 Share Posted September 7, 2015 I want to increase scale of picture in the game. To do this, I change these settings. But in a game scale is not enlarged. What to do?I tried a lot of options and I have run out of ideas. Link to comment https://forums.kleientertainment.com/forums/topic/57706-question-about-spriter/ Share on other sites More sharing options...
Mobbstar Posted September 7, 2015 Share Posted September 7, 2015 Huh... what are you trying to scale up exactly? You can scale the size of a prefab using inst.Transform:SetScale(1,1,1) too (1 is normal) Link to comment https://forums.kleientertainment.com/forums/topic/57706-question-about-spriter/#findComment-670355 Share on other sites More sharing options...
Starofdeath Posted September 7, 2015 Author Share Posted September 7, 2015 (edited) Figures "2" on screenshot. The most amazing thing that the hat on the ground changes, and on head - no ... I'm using Hat Example 1.0 mod.inst.Transform:SetScale(1,1,1) is a good thing, but it happens the same. Now at the beginning. I can not upload my mod in the Steam. The most likely reason - it is the file size with pictures. Empirically(after ~60 tries), I found out that the file must be less than 100 kilobytes. To do this I need to compress images. However, compressed images are too small and need to stretch the game. Edited September 7, 2015 by Starofdeath Link to comment https://forums.kleientertainment.com/forums/topic/57706-question-about-spriter/#findComment-670365 Share on other sites More sharing options...
Mobbstar Posted September 7, 2015 Share Posted September 7, 2015 Figures "2" on screenshot. The most amazing thing that the hat on the ground changes, and on head - no ... I'm using Hat Example 1.0 mod.inst.Transform:SetScale(1,1,1) is a good thing, but it happens the same. Now at the beginning. I can not upload my mod in the Steam. The most likely reason - it is the file size with pictures. Empirically(after ~60 tries), I found out that the file must be less than 100 kilobytes. To do this I need to compress images. However, compressed images are too small and need to stretch the game. Firstly, you need to change the image size for overriding symbols. It sucks, but that's the only way it works. Secondly, I'm sure it's 100 megabytes on DS workshop. Link to comment https://forums.kleientertainment.com/forums/topic/57706-question-about-spriter/#findComment-670386 Share on other sites More sharing options...
Starofdeath Posted September 9, 2015 Author Share Posted September 9, 2015 I'm changing x-scale and y-scale in Spriner: x2, x5... x50.. In the game changing nothing. With original files, with resize file - nothing.Please download Hat Example and try to change its scale in the game. I'm going crazy...( Link to comment https://forums.kleientertainment.com/forums/topic/57706-question-about-spriter/#findComment-670998 Share on other sites More sharing options...
NecroAnbu Posted September 9, 2015 Share Posted September 9, 2015 It would be better to change the scale of the png image before using it in spirter. That way it will have a cleaner look when in game. Link to comment https://forums.kleientertainment.com/forums/topic/57706-question-about-spriter/#findComment-671069 Share on other sites More sharing options...
Starofdeath Posted September 12, 2015 Author Share Posted September 12, 2015 For example mod "Additional Equipmen" have very small textures, but in the game this textures looks normal (not small). In lua-files there are no any special prefabs. How i can give result like this? Link to comment https://forums.kleientertainment.com/forums/topic/57706-question-about-spriter/#findComment-671794 Share on other sites More sharing options...
keraunoscopia Posted September 13, 2015 Share Posted September 13, 2015 Firstly, you need to change the image size for overriding symbols. It sucks, but that's the only way it works. Secondly, I'm sure it's 100 megabytes on DS workshop. Starofdeath, Mobbstar answered your question: an item which is equippable (can be held or worn) needs two animations: (1) an animation of the object sitting on the ground, (2) an animation of the object when it's equipped. The game swaps the second animation in with AnimState:OverrideSymbol() when the item is equipped. As Mobbstar says, the second animation disregards the scale that you set in Spriter - that's just how it works. You need to scale the original image in your drawing program (such as paint.net) to change its size. Link to comment https://forums.kleientertainment.com/forums/topic/57706-question-about-spriter/#findComment-672197 Share on other sites More sharing options...
Starofdeath Posted September 13, 2015 Author Share Posted September 13, 2015 (edited) If it interesting to somebody, i found answer on my question.Go to anim/hat_swap.rar ->(extract)-> atlas-0.tex ->(convert)-> atlas-0.pngresize atlas-0.png from 1024x1024 to (for example) 256x256. atlas-0.png ->(convert)-> atlas-0.tex ->(pack with replace)-> hat_swap.rarDone. Nothin more. Now we have small textures wich looks like normal in the game. Edited September 13, 2015 by Starofdeath Link to comment https://forums.kleientertainment.com/forums/topic/57706-question-about-spriter/#findComment-672220 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now