wind :P

Place to get help with not working mods / modding interface.
Post Reply
User avatar
Dysoch
Filter Inserter
Filter Inserter
Posts: 445
Joined: Fri Oct 18, 2013 2:27 pm
Contact:

wind :P

Post by Dysoch »

i know wind was added in 0.8. aswell as the ability to call direction and speed.
  • is wind already ingame?
  • is it randomly generated?
  • is the direction randomly generated?
  • is it possible to add it to data definitions? (in terms of power generation!)
  • if that isnt possible, is it possible to call it throu event?
in cause some people dont understand this, im trying to make a wind generator! (power wise :P)
Creator of:
- DyTech
- DyWorld
- DyWorld-Dynamics
- DyWorld-Dynamics 2
Active since Factorio 0.6

User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12888
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: wind :P

Post by ssilk »

Not to forget the clouds. (Btw with low resolution the clouds-shadow look ugly.)
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...

User avatar
FreeER
Smart Inserter
Smart Inserter
Posts: 1266
Joined: Mon Feb 18, 2013 4:26 am
Contact:

Re: wind :P

Post by FreeER »

Well, from source it should be three doubles, game.windspeed, game.windorientation, and game.windorientationchange. I can't tell that it does much more than move the clouds a bit right now...or where windspeed might change but, that should allow the creation of a wind turbine, with some extra coding (and maybe a bit of testing). Wind orientation seems to between 0 and 1, and windorientationchange is simply added to the orientation (every tick?) with a random chance (randomGenerator() < 0.001, whatever that chance may be) of being inverted (starts at 0.0001 and don't see it changing anywhere else)

Short: so currently (from what I can see) the wind speed never changes, wind orientation changes from 0-1 based on the addition of windorientationchange which starts at 0.0001 and can be randomly multiplied by -1 to reduce the orientation instead of increasing it.

off topic..hm you can also write to game.tick (of course there is a comment: // to be used with care, lol)
<I'm really not active any more so these may not be up to date>
~FreeER=Factorio Modding
- Factorio Wiki
- My Factorio Modding Guide
- Wiki Modding Guide
Feel free to pm me :)
Or drop into #factorio on irc.esper.net

Post Reply

Return to “Modding help”