Search found 152 matches
- Sun Nov 29, 2020 7:47 am
- Forum: Not a bug
- Topic: [1.1.1] Error info doesn't provide useful info when I create "grenade" entity.
- Replies: 5
- Views: 1238
[1.1.1] Error info doesn't provide useful info when I create "grenade" entity.
If I write game.players[1].surface.create_entity{name = "grenade", position = {0,0}, target=game.players[1]} inside my code, I get an error info. It says that the speed is not in ROOT. But what is the speed? surface.create_entity function doesn't receive a parameter named speed. Does it ha...
- Sun Nov 29, 2020 7:39 am
- Forum: Modding help
- Topic: surface.create_entity{name = "grenade",... doesn't work?
- Replies: 0
- Views: 483
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? ...
- Sun Nov 29, 2020 7:02 am
- Forum: Modding interface requests
- Topic: New controller
- Replies: 6
- Views: 1457
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...
- Sat Nov 28, 2020 12:41 pm
- Forum: Modding help
- Topic: Is it possible to make moving damaging area
- Replies: 0
- Views: 412
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...
- Wed Nov 25, 2020 9:20 am
- Forum: Modding help
- Topic: Mod,场景 开发教程,持续更新。
- Replies: 4
- Views: 1220
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 ...
- Tue Nov 24, 2020 3:45 am
- Forum: Modding help
- Topic: Mod,场景 开发教程,持续更新。
- Replies: 4
- Views: 1220
- Sun Nov 22, 2020 3:34 am
- Forum: Modding help
- Topic: Mod,场景 开发教程,持续更新。
- Replies: 4
- Views: 1220
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...
- Mon Oct 26, 2020 4:42 am
- Forum: Ideas and Suggestions
- Topic: Optimization idea: abstraction
- Replies: 236
- Views: 68931
Re: Optimization idea: abstraction
In fact not. But it indeed looks like a joke.
- Sun Oct 25, 2020 7:52 am
- Forum: Outdated/Not implemented
- Topic: Remove inserters, loaders.
- Replies: 4
- Views: 1738
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...
- Sun Oct 25, 2020 7:30 am
- Forum: Ideas and Suggestions
- Topic: Optimization idea: abstraction
- Replies: 236
- Views: 68931
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 ...
- Sun Oct 25, 2020 1:33 am
- Forum: Ideas and Suggestions
- Topic: Optimization idea: abstraction
- Replies: 236
- Views: 68931
- Sat Oct 24, 2020 1:26 pm
- Forum: Ideas and Suggestions
- Topic: Optimization idea: abstraction
- Replies: 236
- Views: 68931
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...
- Fri Oct 23, 2020 3:05 am
- Forum: Ideas and Suggestions
- Topic: Hand crafting speed is partly wasted.
- Replies: 3
- Views: 882
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...
- Fri Oct 23, 2020 2:53 am
- Forum: Modding help
- Topic: Is it possible to call functions in cpp from lua?
- Replies: 11
- Views: 4091
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...
- Thu Oct 22, 2020 2:34 am
- Forum: Modding help
- Topic: Is it possible to call functions in cpp from lua?
- Replies: 11
- Views: 4091
Re: Is it possible to call functions in cpp from lua?
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.posila wrote: ↑Tue Oct 20, 2020 9:26 amSomebody made a native mod adding a feature that didn't exist a while ago: https://github.com/GrayMage/GrayMod
- Tue Oct 20, 2020 5:24 am
- Forum: Ideas and Suggestions
- Topic: Corresponds RCon to mod rather than server?
- Replies: 4
- Views: 894
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...
- Mon Oct 19, 2020 5:56 am
- Forum: Modding help
- Topic: Is it possible to call functions in cpp from lua?
- Replies: 11
- Views: 4091
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. ...
- Sat Oct 17, 2020 6:50 am
- Forum: Outdated/Not implemented
- Topic: New api in a OOP language?
- Replies: 38
- Views: 10256
- Sat Oct 17, 2020 6:46 am
- Forum: Ideas and Suggestions
- Topic: Optimization idea: abstraction
- Replies: 236
- Views: 68931
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...
- Sat Oct 17, 2020 6:28 am
- Forum: Ideas and Suggestions
- Topic: Optimization idea: abstraction
- Replies: 236
- Views: 68931
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...