Search found 52 matches

by Divran
Thu May 26, 2016 3:57 pm
Forum: Modding help
Topic: trying to make a mod, accidentally crashed my whole computer
Replies: 70
Views: 17134

Re: trying to make a mod, accidentally crashed my whole computer

So I tried it on my old laptop and my new laptop. Unfortunately my old laptop is so slow that I can't tell the difference between a freeze and map generation, haha Anyway, I was able to reproduce the issue on my new laptop. However only with this code: local derp = {derp=1} for k,v in pairs( derp ) ...
by Divran
Thu May 26, 2016 2:19 pm
Forum: Modding help
Topic: trying to make a mod, accidentally crashed my whole computer
Replies: 70
Views: 17134

Re: trying to make a mod, accidentally crashed my whole computer

What's so difficult about making an infinite loop? This thread has 4 pages talking about how to reproduce the issue. But if you insist local derp = {} while true do derp[#derp+1] = "derp" end derp_0.0.1.zip Using that mod (modified to use 500 characters instead of 4 to fill memory faster)...
by Divran
Thu May 26, 2016 1:37 pm
Forum: Modding help
Topic: trying to make a mod, accidentally crashed my whole computer
Replies: 70
Views: 17134

Re: trying to make a mod, accidentally crashed my whole computer

That's not necessary. You are missing the point. You encountered a bug. You have to offer if possible (without redundancy) a crash log file a screenshot a description or material how to reproduce it (done) ... I don't think taking a screenshot would work very well when my computer is crashing (exce...
by Divran
Thu May 26, 2016 10:49 am
Forum: Modding help
Topic: trying to make a mod, accidentally crashed my whole computer
Replies: 70
Views: 17134

Re: trying to make a mod, accidentally crashed my whole computer

That's not necessary. All you need to do to reproduce it is to make something in a mod that eats all your memory (for example, a loop that keeps adding more values to a table). Then, create a new game. If it doesn't crash at first, create another new game without restarting factorio. Then you should...
by Divran
Thu May 26, 2016 9:06 am
Forum: Modding help
Topic: trying to make a mod, accidentally crashed my whole computer
Replies: 70
Views: 17134

Re: trying to make a mod, accidentally crashed my whole computer

Okay so now that we've established that this actually is a bug (the check for memory usage already exists in factorio, only problem is it doesn't work most of the time, in windows 10. Doesn't work in linux either but there it isn't a problem because linux automatically terminates the process when ne...
by Divran
Tue May 24, 2016 3:12 pm
Forum: Modding help
Topic: trying to make a mod, accidentally crashed my whole computer
Replies: 70
Views: 17134

Re: trying to make a mod, accidentally crashed my whole computer

Now here is my issue. If it is true that it is POINTING to a local variable, then when the function ends, the local should deconstruct cleanly and not exist anymore, therefore ore.autoplace should point to an invalid object, which isn't the case. Nah, this is just the way Lua works (other languages...
by Divran
Mon May 23, 2016 6:48 pm
Forum: Modding help
Topic: trying to make a mod, accidentally crashed my whole computer
Replies: 70
Views: 17134

Re: trying to make a mod, accidentally crashed my whole computer

@Divran Are you able to reproduce the full computer crash on your system (where you encountered it last time)? Could you provide a test plugin/mod that reproducible crashes your computer so others can test it as well? (Please make the mod as light-weight as possible, so there isn't any testing over...
by Divran
Mon May 23, 2016 6:24 pm
Forum: Modding help
Topic: trying to make a mod, accidentally crashed my whole computer
Replies: 70
Views: 17134

Re: trying to make a mod, accidentally crashed my whole computer

Alright guys I just tested this in linux, inside a VM. I deliberately created an infinite loop that placed new values into a table. It seems Factorio already has exactly the thing I've been trying to get you to add. After a few seconds, a popup appeared inside factorio telling me that I didn't have ...
by Divran
Mon May 23, 2016 5:43 pm
Forum: Modding help
Topic: trying to make a mod, accidentally crashed my whole computer
Replies: 70
Views: 17134

Re: trying to make a mod, accidentally crashed my whole computer

No. We're not going to spend time working on trying to prevent mods from making infinite loops. Your incompetence is preventing you from seeing the underlying issue here, more importantly, you don't seem to understand who's responsible for what. The underlying issue is not Lua developers creating i...
by Divran
Mon May 23, 2016 12:40 pm
Forum: Modding help
Topic: trying to make a mod, accidentally crashed my whole computer
Replies: 70
Views: 17134

Re: trying to make a mod, accidentally crashed my whole computer

Your incompetence is preventing you from seeing the underlying issue here, more importantly, you don't seem to understand who's responsible for what. The underlying issue is not Lua developers creating inefficient mods. The underlying issue is the game being so shit at dealing with this that it cra...
by Divran
Mon May 23, 2016 11:18 am
Forum: Modding help
Topic: trying to make a mod, accidentally crashed my whole computer
Replies: 70
Views: 17134

Re: trying to make a mod, accidentally crashed my whole computer

I didn't see that this thread was moved to modding help. Please move it back to the bug reports subforum. It belongs there. If you are a moderator, please re-read the first post, because I've rewritten it. No. We're not going to spend time working on trying to prevent mods from making infinite loop...
by Divran
Mon May 23, 2016 7:01 am
Forum: Modding help
Topic: trying to make a mod, accidentally crashed my whole computer
Replies: 70
Views: 17134

Re: trying to make a mod, accidentally crashed my whole computer

I didn't see that this thread was moved to modding help. Please move it back to the bug reports subforum. It belongs there. If you are a moderator, please re-read the first post, because I've rewritten it.
by Divran
Sun May 22, 2016 12:13 pm
Forum: Modding help
Topic: trying to make a mod, accidentally crashed my whole computer
Replies: 70
Views: 17134

Re: trying to make a mod, accidentally crashed my whole computer

I updated my first post because it was terrible.
by Divran
Sun May 22, 2016 2:54 am
Forum: Modding help
Topic: trying to make a mod, accidentally crashed my whole computer
Replies: 70
Views: 17134

Re: trying to make a mod, accidentally crashed my whole computer

Checking how much ram the process is using shouldn't slow it down at all, but fine whatever don't fix this then.

Just to show you what I was trying to do
Image
by Divran
Sun May 22, 2016 1:57 am
Forum: Modding help
Topic: trying to make a mod, accidentally crashed my whole computer
Replies: 70
Views: 17134

Re: trying to make a mod, accidentally crashed my whole computer

I'm aware of this. Mods, though, should be sandboxed, and I'm positive mods in factorio already are (for example you shouldn't be able to use lua to delete important operating system files - if you can, then it's not sandboxed properly). When a mod simply uses too much ram (such as in this case), it...
by Divran
Sun May 22, 2016 1:13 am
Forum: Modding help
Topic: trying to make a mod, accidentally crashed my whole computer
Replies: 70
Views: 17134

Re: trying to make a mod, accidentally crashed my whole computer

Yep I knew it had to do with infinite loops somehow. I just ran out of patience and didn't bother to check the code at all. Point is, nothing I do in a mod should cause my entire computer to crash, so this needs to be fixed regardless. At most, it should close the game once it uses too much ram. How...
by Divran
Sat May 21, 2016 11:54 pm
Forum: Modding help
Topic: trying to make a mod, accidentally crashed my whole computer
Replies: 70
Views: 17134

trying to make a mod, accidentally crashed my whole computer

EDIT: Okay I wrote this post so badly that I came across as a massive idiot. If you are confused by the first few responses below, it's my fault. I apologize. New rule: don't write forum posts at 1am. This post talks about something that I, last night, must have assumed was so simple that everyone ...
by Divran
Wed Feb 17, 2016 8:47 am
Forum: Mods
Topic: [0.12.17]Clean Pipes 0.0.4 - Decide how pipes connect!
Replies: 23
Views: 38234

Re: [0.12.17]Clean Pipes 0.0.4 - Decide how pipes connect!

This is the problem with how factorio has implemeted entity instances. You can't have code on each individual entity instance. In Garry's Mod, you can, which would make having only a single type of pipe for everything be a piece of cake. Each pipe entity would simply store their designated rotation ...
by Divran
Wed Feb 17, 2016 8:37 am
Forum: News
Topic: Friday Facts #124 - Steam Status I
Replies: 121
Views: 107831

Re: Friday Facts #124 - Steam Status I

Hey, not sure if someone else has already mentioned this in this thread, but instead of giving a "request key" button to retrieve the steam key, could you not do what humble bundle does and simply send the game directly to the user's steam account when they press the button? I'm not sure h...
by Divran
Sat Dec 12, 2015 1:34 pm
Forum: Not a bug
Topic: you never have to recharge robots
Replies: 2
Views: 7021

Re: you never have to recharge robots

oh sorry

Go to advanced search