Search found 8 matches

by Narinik
Sun Jun 22, 2014 2:47 am
Forum: Modding help
Topic: Control Code
Replies: 19
Views: 7857

Re: Control Code

Switched over to being a generator, not sure why this is happening:
by Narinik
Tue Jun 17, 2014 4:03 am
Forum: Modding help
Topic: Control Code
Replies: 19
Views: 7857

Re: Control Code

windmill ingame, angle is a little off. got the animation working but it only plays once for some reason. is it possible to just have it play and set the animation speed?
by Narinik
Tue Jun 17, 2014 2:16 am
Forum: Modding help
Topic: Control Code
Replies: 19
Views: 7857

Re: Control Code

I think ive got it working as a generator. set the ontick to fire every tick to smooth out the graph.

also put together a quick model, that is most likely at the wrong angle.
by Narinik
Mon Jun 16, 2014 5:04 am
Forum: Modding help
Topic: Control Code
Replies: 19
Views: 7857

Re: Control Code

Sweet, got it working as a generator type. but it acts kind of funny. It only updates once a second(event.tick%60) so i get this as a power graph:
by Narinik
Mon Jun 16, 2014 4:28 am
Forum: Modding help
Topic: Control Code
Replies: 19
Views: 7857

Re: Control Code

So here you can see my awesome gfx. but the question being, why do i get unknown key ect?
in my data.lua

Code: Select all

{
    type = "technology",
    name = "WindPower",
by Narinik
Mon Jun 16, 2014 3:15 am
Forum: Modding help
Topic: Control Code
Replies: 19
Views: 7857

Re: Control Code

Im not sure why my post isnt showing up, so if this is a repost ill delete.

How do I define a new type? So I imagine i can access windmill.production and do something like windmill.production = (generate number) +"W"
as is, the 'windmill' is just a solar panel that reacts to the sun.
type ...
by Narinik
Mon Jun 16, 2014 2:35 am
Forum: Modding help
Topic: Control Code
Replies: 19
Views: 7857

Re: Control Code

FreeER, that's pretty much exactly what I was looking for. Thanks! Sorry for the delayed reply, I was away for the weekend :P

(and especially if you haven't used a programming language before)

I actually have a degree in computer science and am working on a masters. I didn't want to be too ...
by Narinik
Thu Jun 12, 2014 3:36 am
Forum: Modding help
Topic: Control Code
Replies: 19
Views: 7857

Control Code

After finishing a 60 hour freeplay game I wanted to try my hand at modding. I saw that windmills have been somewhat debated already on the fourm but decided to try and make one myself.

So far ive got the research, item, and placeable working. the windmill at present works like a small solar panel ...

Go to advanced search