Search found 151 matches

by yagaodirac
Sun Nov 29, 2020 7:39 am
Forum: Modding help
Topic: surface.create_entity{name = "grenade",... doesn't work?
Replies: 0
Views: 87

surface.create_entity{name = "grenade",... doesn't work?

When I throw a grenade, the surface.find_entities returns me a table with some entity named grenade. When I tried to create it from code, even if I specified the target, it still refused to work. The error info pointed out that a speed field is not specified, but I found no clue about it. Any idea? ...
by yagaodirac
Sun Nov 29, 2020 7:02 am
Forum: Modding interface requests
Topic: New controller
Replies: 6
Views: 405

New controller

I work on a mod recently. I need to make a new kind of controller. When player press wasd, the character should move around in the scene, but I want the viewport to stay. When player presses some key, say spacebar, the viewport aligns with the character. With the api available now, I have to combine...
by yagaodirac
Sat Nov 28, 2020 12:41 pm
Forum: Modding help
Topic: Is it possible to make moving damaging area
Replies: 0
Views: 75

Is it possible to make moving damaging area

Like a poisonous smock moves around. When people get inside they receive damage. I spent some time looking into the fire stream prototypes, such as "flamethrower-fire-stream", and also the stickers, such as"fire-sticker". Do I have to make a flying entity to provide the animation...
by yagaodirac
Wed Nov 25, 2020 9:20 am
Forum: Modding help
Topic: Mod,场景 开发教程,持续更新。
Replies: 4
Views: 359

Re: Mod,场景 开发教程

I mean on your forum post, a little explanation on what will be found on the github deposit (which is in Chinese, so not directly obvious for all non Chinese fluent of us). That should be OK if you read Chinese. I'll edit the first layer. Btw, do people need some kinda developing environment setup ...
by yagaodirac
Tue Nov 24, 2020 3:45 am
Forum: Modding help
Topic: Mod,场景 开发教程,持续更新。
Replies: 4
Views: 359

Re: Mod,场景 开发教程

Koub wrote:
Sun Nov 22, 2020 7:51 am
A bit more context would be useful, don't you think ?
I will update it if I find anything useful. Any idea?
by yagaodirac
Sun Nov 22, 2020 3:34 am
Forum: Modding help
Topic: Mod,场景 开发教程,持续更新。
Replies: 4
Views: 359

Mod,场景 开发教程,持续更新。

https://github.com/YagaoDirac/Internal-Reference-of-Dirac-GamePlay-Research-and-Design-Institute/blob/master/%E5%BC%82%E6%98%9F%E5%B7%A5%E5%8E%82%20mod%20scenario%20%E5%BC%80%E5%8F%91%E6%95%99%E7%A8%8B/%E6%95%99%E7%A8%8B.txt 持续更新中。 Mod, scenario develop environment setup tutorial in Chinese. Do you...
by yagaodirac
Mon Oct 26, 2020 4:42 am
Forum: Ideas and Suggestions
Topic: Optimization idea: abstraction
Replies: 219
Views: 17043

Re: Optimization idea: abstraction

AmericanPatriot wrote:
Sun Oct 25, 2020 5:25 pm
Is this a joke?
In fact not. But it indeed looks like a joke.
by yagaodirac
Sun Oct 25, 2020 7:52 am
Forum: Outdated/Not implemented
Topic: Remove inserters, loaders.
Replies: 4
Views: 403

Remove inserters, loaders.

I believe you designed the whole game according to stl in c++. Inserters, containers, oh... Can I say assemblers, furnaces, refineries are functors? I'm reading a book written in 1998ish by a German guy. The book is on stl. The book is great. But inserters don't make this game any better. I don't re...
by yagaodirac
Sun Oct 25, 2020 7:30 am
Forum: Ideas and Suggestions
Topic: Optimization idea: abstraction
Replies: 219
Views: 17043

Re: Optimization idea: abstraction

According to my researchment, people believe a game is sacred when the people don't know how to develop games, neither do they have any idea how the current game was made. I revealed this pheonominon multiple times in different games through some genre. I don't remember who it was proposed to speed ...
by yagaodirac
Sun Oct 25, 2020 1:33 am
Forum: Ideas and Suggestions
Topic: Optimization idea: abstraction
Replies: 219
Views: 17043

Re: Optimization idea: abstraction

posila wrote:
Sat Oct 24, 2020 5:33 pm
So, would you remove inserters in 1.1?
by yagaodirac
Sat Oct 24, 2020 1:26 pm
Forum: Ideas and Suggestions
Topic: Optimization idea: abstraction
Replies: 219
Views: 17043

Re: Optimization idea: abstraction

The @ symbol didn't show any notice to me. Anyway. We share the same way. Except for some details, which don't count at all. I think we should review the design of this game, rather than base on it and then try something epic but not very practical. 1, What is the purpose of scaling base. Does gian...
by yagaodirac
Fri Oct 23, 2020 3:05 am
Forum: Ideas and Suggestions
Topic: Hand crafting speed is partly wasted.
Replies: 3
Views: 229

Hand crafting speed is partly wasted.

In some scenario, people would get very big buff on hand crafting speed. When they take less than 1 tick to craft some item, the extra part is wasted. Normally, if some recipe takes 1second, it's 60ticks. If someone has a hand crafting speed of 60, it takes only 1tick. But if that guy's speed is 120...
by yagaodirac
Fri Oct 23, 2020 2:53 am
Forum: Modding help
Topic: Is it possible to call functions in cpp from lua?
Replies: 11
Views: 953

Re: Is it possible to call functions in cpp from lua?

People who buy the game can do whatever they want with it (well, almost anything ... don't put it up on piratebay, don't resell it and stuff like that), as well as they can with their computers. If anyone wants to modify the game by injecting their own machine code into it, all power to them, as lo...
by yagaodirac
Thu Oct 22, 2020 2:34 am
Forum: Modding help
Topic: Is it possible to call functions in cpp from lua?
Replies: 11
Views: 953

Re: Is it possible to call functions in cpp from lua?

posila wrote:
Tue Oct 20, 2020 9:26 am
Somebody made a native mod adding a feature that didn't exist a while ago: https://github.com/GrayMage/GrayMod
But it's very clear, you don't want people to do this. It's not safe at all literally. And it shouldn't be able to run on 1.0.
by yagaodirac
Tue Oct 20, 2020 5:24 am
Forum: Ideas and Suggestions
Topic: Corresponds RCon to mod rather than server?
Replies: 4
Views: 272

Corresponds RCon to mod rather than server?

I just learnt how Clusterio mod works. Thank the devs for help. I found the Rcon protocol to be very helpful. I wondered how to call functions provided by other code(like cpp) from lua inside my mod, but it turned out Rcon is the better approach. But the trouble is that, for the game atm, Rcon corre...
by yagaodirac
Mon Oct 19, 2020 5:56 am
Forum: Modding help
Topic: Is it possible to call functions in cpp from lua?
Replies: 11
Views: 953

Re: Is it possible to call functions in cpp from lua?

As mentioned by others, you can't have the Factorio process load any DLL you provide and start calling its functions from your Lua code (And from a security point of view, I hope it never happens). That being said, if I take your question literally, the answer is that it's possible in multiplayer. ...
by yagaodirac
Sat Oct 17, 2020 6:50 am
Forum: Outdated/Not implemented
Topic: New api in a OOP language?
Replies: 38
Views: 2621

Re: New api in a OOP language?

Klonan wrote:
Wed Oct 14, 2020 8:15 am
Hi, sorry to disturb you again. I hear that you prevented lua in custom mod to call functions in any other code? Means that I can't write any cpp code and call it from control.lua or data.lua? Thanks.
by yagaodirac
Sat Oct 17, 2020 6:46 am
Forum: Ideas and Suggestions
Topic: Optimization idea: abstraction
Replies: 219
Views: 17043

Re: Optimization idea: abstraction

OK, besides. Some of you are interesting in algorithm to directly simplify the computation in vanilla. But you need to know, if you parse a specific structure, like smelting zone, only the corresponding zones benefit. The more a zone is logically near to mining, the practical to do this. If an assem...
by yagaodirac
Sat Oct 17, 2020 6:28 am
Forum: Ideas and Suggestions
Topic: Optimization idea: abstraction
Replies: 219
Views: 17043

Re: Optimization idea: abstraction

I literally accept all the changes, all the levels of changes. One thing I have to point out, within all the similar games I've played or at least watched the videos or streaming, Factorio is very special. The design of belts with 2 sides, inserters, loaders, and even the variation of shapes of trai...
by yagaodirac
Sat Oct 17, 2020 3:18 am
Forum: Modding help
Topic: Is it possible to call functions in cpp from lua?
Replies: 11
Views: 953

Re: Is it possible to call functions in cpp from lua?

He already knows it. I told him earlier. 3, You shouldn't talk about this idea here. You know amd and intel? Ask them for the solution. But in fact, I just started knowing that, lua can call functions written in cpp. If you mod a interface in lua, take the advantage of cpp and graphics card, with s...

Go to advanced search