Search found 22 matches

by rainawareness
Sun May 15, 2022 3:05 pm
Forum: Modding interface requests
Topic: [0.16.22] Missing robot animation
Replies: 4
Views: 1923

Animating bots in a state other than "construction-working"

I was dying to give my logistic bots a simple 2 frame animation, but it turns out that's not possible. So I guess I'm updating this request from four years ago: viewtopic.php?f=28&t=57723&p=568079#p568079

Moderator note: Merged into linked topic
by rainawareness
Sun May 15, 2022 2:58 pm
Forum: Modding discussion
Topic: How do I animate a texture?
Replies: 35
Views: 5608

Re: How do I animate a texture?

Hmm, the code you posted still shows the filename pointing to the original base files? Well that was the way I had been able to change textures which worked, have some text in the config filed and mirror the file tree: [...] But that was before I had even opened data-final-fixes, do you perhaps kno...
by rainawareness
Sun May 15, 2022 2:52 pm
Forum: Modding discussion
Topic: How do I animate a texture?
Replies: 35
Views: 5608

Re: How do I animate a texture?

Ok, let's look at this differently. You're just trying to change some properties to the existing robots, right? Not create all new ones? Personally, I'd put my code directly into the data-final-fixes.lua file, rather than using it to call another file, but I'd also approach it like this: local logi...
by rainawareness
Sun May 15, 2022 2:14 pm
Forum: Modding discussion
Topic: How do I animate a texture?
Replies: 35
Views: 5608

Re: How do I animate a texture?

Hmm, the code you posted still shows the filename pointing to the original base files? Well that was the way I had been able to change textures which worked, have some text in the config filed and mirror the file tree: return { resource_pack_name = "vivillon_bots", data = { base = { graph...
by rainawareness
Sun May 15, 2022 2:11 pm
Forum: Modding discussion
Topic: How do I animate a texture?
Replies: 35
Views: 5608

Re: How do I animate a texture?

Bilka wrote: ↑
Sun May 15, 2022 7:29 am
See viewtopic.php?p=343228#p343228 (old, but may still apply).
Oh no, oh no!!! Well I think I replied to that post to see if that is still the case, thank you very much.
by rainawareness
Sun May 15, 2022 2:11 pm
Forum: Modding interface requests
Topic: [0.16.22] Missing robot animation
Replies: 4
Views: 1923

Re: [0.16.22] Missing robot animation

posila wrote: ↑
Thu Feb 15, 2018 10:57 am
Hello, I moved the report to modding interface requests. Animating idle state nor in_motion state is not currently supported.
Hello um, does that limitation still exist?
by rainawareness
Sun May 15, 2022 4:03 am
Forum: Modding discussion
Topic: How do I animate a texture?
Replies: 35
Views: 5608

Re: How do I animate a texture?

Off hand what I'm seeing is that you've changed all of the values related to the sprite sheet, but are still using the same sprite sheet. Whaaat? Nono, the sprite sheets have been changed. They were changed to the construction robot's "working" sprite sheet, which is why I changed the val...
by rainawareness
Sun May 15, 2022 2:18 am
Forum: Modding discussion
Topic: How do I animate a texture?
Replies: 35
Views: 5608

Re: How do I animate a texture?

Ok, let's look at this differently. You're just trying to change some properties to the existing robots, right? Not create all new ones? Personally, I'd put my code directly into the data-final-fixes.lua file, rather than using it to call another file, but I'd also approach it like this: local logi...
by rainawareness
Sun May 15, 2022 1:08 am
Forum: Modding discussion
Topic: How do I animate a texture?
Replies: 35
Views: 5608

Re: How do I animate a texture?

Move the bracket from line 92 to line 110. I think there's no longer a bracket problem: return { resource_pack_name = "vivillon_bots", data = { base = { prototypes= { entity = { ["flying-robot.lua"] = { robot_animations = { logistic_robot = { idle = { filename = "__base__/g...
by rainawareness
Sun May 15, 2022 12:23 am
Forum: Modding discussion
Topic: How do I animate a texture?
Replies: 35
Views: 5608

Re: How do I animate a texture?

You should use the code tags to preserve the indents (makes it easier to read :) ), or just attach the original file (which, btw, all those pics you uploaded to another site then linked to? You could've just attached them directly to your post. :) ). I personally like using tabs in my code for inde...
by rainawareness
Sun May 15, 2022 12:18 am
Forum: Modding discussion
Topic: How do I animate a texture?
Replies: 35
Views: 5608

Re: How do I animate a texture?

You should use the code tags to preserve the indents (makes it easier to read :) ), or just attach the original file (which, btw, all those pics you uploaded to another site then linked to? You could've just attached them directly to your post. :) ). I personally like using tabs in my code for inde...
by rainawareness
Sat May 14, 2022 11:17 pm
Forum: Modding discussion
Topic: How do I animate a texture?
Replies: 35
Views: 5608

Re: How do I animate a texture?

Look at the wiki for rotated animation. Width and height are the width and height of the frames within the sprite sheet. While it does have you tell it how many frames there are, it doesn't automatically calculate out what that means for their size within the sheet. And it should be noted that line...
by rainawareness
Sat May 14, 2022 10:36 pm
Forum: Modding discussion
Topic: How do I animate a texture?
Replies: 35
Views: 5608

Re: How do I animate a texture?

Just keep looking! If it wasn't there somewhere, it wouldn't appear in the game. Use a text editor like Notepad++ that can search for text in all the files at once. Edit: what you found was a subroutine that is called inside the actual definition. You can search for the name of the subroutine (the ...
by rainawareness
Sat May 14, 2022 9:50 pm
Forum: Modding discussion
Topic: How do I animate a texture?
Replies: 35
Views: 5608

Re: How do I animate a texture?

I think frame_sequence is optional if you just want them to go in order. You should look at the existing bot animation definitions, and just change it from 4 frames to 2. Everything else I would have to figure out with trial and error too, so give it a shot! Yeah that was kind of the problem, I cou...
by rainawareness
Sat May 14, 2022 9:49 pm
Forum: Modding discussion
Topic: How do I animate a texture?
Replies: 35
Views: 5608

Re: How do I animate a texture?

The actual animation code is all internal. You just need to setup the sprite sheet and define the needed parameters during the data stage. Without my computer in front of me, you should look in the data/base/prototypes/entities/entities.lua file, and search if for the prototype names that match con...
by rainawareness
Sat May 14, 2022 8:18 pm
Forum: Modding discussion
Topic: How do I animate a texture?
Replies: 35
Views: 5608

Re: How do I animate a texture?

I think frame_sequence is optional if you just want them to go in order. You should look at the existing bot animation definitions, and just change it from 4 frames to 2. Everything else I would have to figure out with trial and error too, so give it a shot! Yeah that was kind of the problem, I cou...
by rainawareness
Sat May 14, 2022 8:17 pm
Forum: Modding discussion
Topic: How can I copy construction robots' animation onto logistic robots?
Replies: 1
Views: 793

How can I copy construction robots' animation onto logistic robots?

Construction robots have a RotatedAnimation type called working, which has their 2-frame animation when they are repairing a building. https://wiki.factorio.com/Prototype/ConstructionRobot#working I don't know how to code something like that or view its code to emulate it. However, I want to made a ...
by rainawareness
Sat May 14, 2022 6:54 pm
Forum: Modding discussion
Topic: How do I animate a texture?
Replies: 35
Views: 5608

Re: How do I animate a texture?

Looks like Logistic Robots can only have Idle and Moving animations. Whaaaaaat? Do you mean logistic bots can't have animations? :roll: If you can do what you want with the Idle and Moving animations then what is the question? I think they can be expanded to up to 255 frames each. With the frame_se...
by rainawareness
Sat May 14, 2022 5:38 pm
Forum: Modding discussion
Topic: How do I animate a texture?
Replies: 35
Views: 5608

Re: How do I animate a texture?

Looks like Logistic Robots can only have Idle and Moving animations. They cannot have Working animation because they do not have a "working" state (I suspect the "working" state is for when construction robots have to hover to repair something). You can change or add the Idle an...
by rainawareness
Sat May 14, 2022 5:10 pm
Forum: Modding discussion
Topic: How do I animate a texture?
Replies: 35
Views: 5608

Re: How do I animate a texture?

The assembler has "Animation4Way" because you can place it facing North, South, East, or West, and the animation can use a different spritesheet for each orientation. The Logistic Bot has "RotatedAnimation" because it can be drawn in more than four orientations. The vanilla robo...

Go to advanced search