Ask a simple question, get a simple answer

  • Please make sure you are posting in the correct place. Server ads go here and modpack bugs go here
  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

PhilHibbs

Forum Addict
Trusted User
Jan 15, 2013
3,174
1,128
183
Birmingham, United Kingdom
I have a patch of taint near my base that won't go away. A couple of spots just refuse to go, I've tried silverwoods and the infused plant but neither will remove the taint entirely. Is this supposed to happen, and do I have any other choices? I'm running a slightly expanded MF2 pack.
 

CarbonBasedGhost

New Member
Jul 29, 2019
910
-1
0
I have a patch of taint near my base that won't go away. A couple of spots just refuse to go, I've tried silverwoods and the infused plant but neither will remove the taint entirely. Is this supposed to happen, and do I have any other choices? I'm running a slightly expanded MF2 pack.
Generally what I do is suround the taint with ethereal blooms then plant a silverwood in the middle.
 

Beeze23

New Member
Jul 29, 2019
159
0
0
I have a patch of taint near my base that won't go away. A couple of spots just refuse to go, I've tried silverwoods and the infused plant but neither will remove the taint entirely. Is this supposed to happen, and do I have any other choices? I'm running a slightly expanded MF2 pack.

Did you also break the nodes associated with the taint?
 

rhn

Too Much Free Time
Nov 11, 2013
5,706
4,420
333
Somewhat more a CC programming questions I guess:
Bit of a nub when it comes to programming and run into a problem that I am having a hard time searching for answers for.
I am using this to read the contents of a file on a Floppy disk:
Code:
local FloorFile = fs.open("disk/floor", "r")

if FloorFile then
        ThisFloor = FloorFile.readLine()
        print("This floor: "..ThisFloor)
        FloorFile.close()
else
        print("No Floor File/disk found")
        return
end
This appears to work fine. The file just contains a single digit number(indicating the floor at which the computer in question is located at)

Later however I want use this stored variable, for example:
Code:
local buttoncolours={}
for k=1, #buttontext do
        buttoncolours[k]=8192 --green
end
buttoncolours[ThisFloor]=32 --lime
I would assume this would save the colour green in all the tables positions and then overwrite the one which matches the floor the computer is on with lime, but for some reason it doesn't.

I am guessing it is caused by it considers the number read from the file as a string and not a numerical value(and thereby creates a new entry with the string as key)? If so how would I go about translating it from this string(of one digit number) to the real number?
 

CptSpike

New Member
Jul 29, 2019
398
0
0
Somewhat more a CC programming questions I guess:
Bit of a nub when it comes to programming and run into a problem that I am having a hard time searching for answers for.
I am using this to read the contents of a file on a Floppy disk:
Code:
local FloorFile = fs.open("disk/floor", "r")

if FloorFile then
        ThisFloor = FloorFile.readLine()
        print("This floor: "..ThisFloor)
        FloorFile.close()
else
        print("No Floor File/disk found")
        return
end
This appears to work fine. The file just contains a single digit number(indicating the floor at which the computer in question is located at)

Later however I want use this stored variable, for example:
Code:
local buttoncolours={}
for k=1, #buttontext do
        buttoncolours[k]=8192 --green
end
buttoncolours[ThisFloor]=32 --lime
I would assume this would save the colour green in all the tables positions and then overwrite the one which matches the floor the computer is on with lime, but for some reason it doesn't.

I am guessing it is caused by it considers the number read from the file as a string and not a numerical value(and thereby creates a new entry with the string as key)? If so how would I go about translating it from this string(of one digit number) to the real number?

Not at my PC but yeah it's read as a string and to get the actual integer value you call toNum(string) or something similar. Hopefully that points you in the right direction :)

Edit: I'm no sure what you call toNum on, btw. Does CC have a string API?

Edit: got it:
http://computercraft.info/wiki/index.php?title=Tonumber
 
  • Like
Reactions: rhn

rhn

Too Much Free Time
Nov 11, 2013
5,706
4,420
333
Not at my PC but yeah it's read as a string and to get the actual integer value you call toNum(string) or something similar. Hopefully that points you in the right direction :)

Edit: I'm no sure what you call toNum on, btw. Does CC have a string API?

Edit: got it:
http://computercraft.info/wiki/index.php?title=Tonumber
Fantastic, just found that myself from googling what you mentioned first! Awesome!

EDIT: worked perfectly!
 

reddvilzz

New Member
Jul 29, 2019
376
0
1
Anyone know what is needed to test a modpack? [To figure out if there is any bugs / not, crashes, etc]
Because i am planning to make my own private 1.7.10 modpack and i don't know way and / how to test it properly like the FTB team did

Sent from my Nexus 5 using Tapatalk
 

Moasseman

New Member
Jul 29, 2019
1,679
-2
1
Have few people play with it.

FTB team has the advantage of huge playerbase and bug reports for that :3
 

RealSketch

New Member
Jul 29, 2019
2,016
0
0
Anyone know what is needed to test a modpack? [To figure out if there is any bugs / not, crashes, etc]
Because i am planning to make my own private 1.7.10 modpack and i don't know way and / how to test it properly like the FTB team did

Sent from my Nexus 5 using Tapatalk
Expand on please, do you mean like just bug test?
 

Wagon153

New Member
Jul 29, 2019
3,148
-3
1
Anyone know what is needed to test a modpack? [To figure out if there is any bugs / not, crashes, etc]
Because i am planning to make my own private 1.7.10 modpack and i don't know way and / how to test it properly like the FTB team did

Sent from my Nexus 5 using Tapatalk
Play it yourself(Preferably with other players). Regularly perform profiles using VisualVM. Watch changelogs like a hawk.
 

malicious_bloke

Over-Achiever
Jul 28, 2013
2,961
2,705
298
Is there a way I can get an accurate readout of the power level of an electricraft battery (you know, something using computercraft maybe?) without actually going up and right clicking them?

I have superconductive wires trailing all round them and I keep dying when I go to check my power level lol
 

PhilHibbs

Forum Addict
Trusted User
Jan 15, 2013
3,174
1,128
183
Birmingham, United Kingdom
Generally what I do is suround the taint with ethereal blooms then plant a silverwood in the middle.
Ok I'll give that a go, it's a tainted lake so I need to grass it over just so I can see the extent more clearly.
Did you also break the nodes associated with the taint?
No node visible. Unless, maybe, it's underground... I'll check that when I get back from my holidays.
Are there any bees that clean up taint? I just got some alvearies up and running this week.
 

Blastedsura

New Member
Jul 29, 2019
138
0
0
Lag spikes in any 1.7.10 modpack I play. If I unlock the fps I usually play with around 90-100, but it still stutters every 5-10 seconds. Last modpack I tried was FTB Unstable. Any tips?
 

Padfoote

Brick Thrower
Forum Moderator
Dec 11, 2013
5,140
5,898
563
Lag spikes in any 1.7.10 modpack I play. If I unlock the fps I usually play with around 90-100, but it still stutters every 5-10 seconds. Last modpack I tried was FTB Unstable. Any tips?

We need more info than that, and in a separate thread preferably.
 
  • Like
Reactions: buggirlexpres

SteveHeist

New Member
Jul 29, 2019
10
0
0
Yeah, but I'm a little confused about what to put into it. I tried a capital T, but that just crashes the game. I looked it up and the only tutorial I saw was so outdated it was laughable.
 

buggirlexpres

Relatable Gamer
Trusted User
Retired Staff
Nov 24, 2012
3,937
7,362
663
she/her
twitter.com
Yeah, but I'm a little confused about what to put into it. I tried a capital T, but that just crashes the game. I looked it up and the only tutorial I saw was so outdated it was laughable.
e4ahedyp.jpg

Then don't use a capital T
 
  • Like
Reactions: Kill-Joy