This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
DannySMc's profile picture

Additional ROM files on server

Started by DannySMc, 26 June 2017 - 12:35 PM
DannySMc #1
Posted 26 June 2017 - 02:35 PM
Hi,

I can't remember how to setup custom programs and files for CC into a server. I heard about resource files, but not sure if these still work with servers or not? Normally I edit the CC Jar, would rather not if possible?

Thanks in advance.
Lupus590 #2
Posted 26 June 2017 - 03:08 PM
I belive there is a special folder called "server resourcefiles" or something which are resources the just the server needs. The server also can have a "resource" folder but that's for things that clients will need.
DannySMc #3
Posted 26 June 2017 - 03:34 PM
I belive there is a special folder called "server resourcefiles" or something which are resources the just the server needs. The server also can have a "resource" folder but that's for things that clients will need.

I am not sure what you mean? server resourcefiles has a space in, which makes me think if that's the correct name? Do you know where I can find out?
Lupus590 #4
Posted 26 June 2017 - 05:50 PM
Have you tried giving the server a normal resourcepack folder? I'm begining to suspect that that will work.
Bomb Bloke #5
Posted 26 June 2017 - 11:03 PM
"resourcepacks" is the correct folder title.
DannySMc #6
Posted 27 June 2017 - 12:51 PM
"resourcepacks" is the correct folder title.

Is it a zip or folder? like is there any documentation on the zip/folder structure?
SquidDev #7
Posted 27 June 2017 - 02:21 PM
Is it a zip or folder?
Judging by the code, both should work. It might have been a little quicker if you'd just tried this yourself though :P/>.

like is there any documentation on the zip/folder structure?
The same as ComputerCraft itself uses. So you should put your files in assets/computercraft/lua/rom/.
Edited on 27 June 2017 - 12:22 PM
Bomb Bloke #8
Posted 27 June 2017 - 02:25 PM
http://minecraft.gamepedia.com/Resource_pack#Contents

http://www.computercraft.info/forums2/index.php?/topic/14049-how-to-make-and-install-lua-resource-packs/
DannySMc #9
Posted 28 June 2017 - 08:51 AM
Is it a zip or folder?
Judging by the code, both should work. It might have been a little quicker if you'd just tried this yourself though :P/>/>.
like is there any documentation on the zip/folder structure?
The same as ComputerCraft itself uses. So you should put your files in assets/computercraft/lua/rom/.

I did try :(/> I can add it to my local minecraft, but the server one won't pick it up. Which is why I asked to make sure.
Lyqyd #10
Posted 28 June 2017 - 08:03 PM
The only files that CC uses are the ones on the server. In a single player map, it just happens that the server is also your client.
DannySMc #11
Posted 28 June 2017 - 08:27 PM
The only files that CC uses are the ones on the server. In a single player map, it just happens that the server is also your client.
Hmm so why won't it pick up the server files, but will pick up the local one.
Bomb Bloke #12
Posted 28 June 2017 - 11:48 PM
I think Danny's trying to say that adding his resource pack to his client works, but adding his resource pack to his server does not.

Beats me as to where the problem might lie, but odds are it'd be easier to work it out if a copy of the resource pack in concern were available.
DannySMc #13
Posted 29 June 2017 - 09:00 AM
I think Danny's trying to say that adding his resource pack to his client works, but adding his resource pack to his server does not.
Beats me as to where the problem might lie, but odds are it'd be easier to work it out if a copy of the resource pack in concern were available.

Ahh yes, apologies let me zip it up and make it downloadable.

Link: https://kaos-network.com/files/airwaves.zip
Bomb Bloke #14
Posted 29 June 2017 - 02:25 PM
That's not a valid resource pack file. Putting aside the hidden OSX filesystem rubbish you've bundled into it (which probably won't break anything, but still), you simply aren't following the instructions and examples I linked you to. You don't even have pack.mcmeta in place. :S
DannySMc #15
Posted 29 June 2017 - 03:43 PM
That's not a valid resource pack file. Putting aside the hidden OSX filesystem rubbish you've bundled into it (which probably won't break anything, but still), you simply aren't following the instructions and examples I linked you to. You don't even have pack.mcmeta in place. :S

Oh apologies, I didn't read that correctly! I see, so why would it work on local and not the server? Hmm I shall look into that now. Apologies; and yes the OSX stuff always gets put in there :/ It's quite annoying.
Lyqyd #16
Posted 30 June 2017 - 03:36 AM
Also, "let me zip it up" may be part of the problem. If I recall correctly, at least CC wants its resource packs to be resource packs, i.e., zipped.
DannySMc #17
Posted 30 June 2017 - 09:10 AM
Also, "let me zip it up" may be part of the problem. If I recall correctly, at least CC wants its resource packs to be resource packs, i.e., zipped.

Oh I thought you could leave it without zipping it? as the local works without zipping it up? but okay!
DannySMc #18
Posted 30 June 2017 - 06:15 PM
I downloaded the example given here: http://www.computercraft.info/forums2/index.php?/topic/14049-how-to-make-and-install-lua-resource-packs/

This doesn't work…?
Bomb Bloke #19
Posted 01 July 2017 - 07:28 AM
Dunno what to tell you, I set up a server on my local machine, dropped "CCResourcePackExample1.zip" into a "resourcepacks" subfolder, and the "example" script showed up in the programs directory as expected.

Silly question, but you did reboot the server after inserting the pack, yeah?

Did you place the original zip file, or did you repack it for some reason?
DannySMc #20
Posted 02 July 2017 - 11:33 PM
Dunno what to tell you, I set up a server on my local machine, dropped "CCResourcePackExample1.zip" into a "resourcepacks" subfolder, and the "example" script showed up in the programs directory as expected.

Silly question, but you did reboot the server after inserting the pack, yeah?

Did you place the original zip file, or did you repack it for some reason?

This was my local; no server, like it didn't even come up in resource packs? (not sure if it should or not) really weird, I must be doing something wrong :s.

And no I didn't repack it.
Bomb Bloke #21
Posted 03 July 2017 - 01:50 AM
If you install the pack into your local client and enter an SSP world, the pack should show up on the Resource Packs menu, albeit in a "red" state due to being built for older versions of Minecraft (as we're both currently playing with 1.11.2).

ComputerCraft should automatically load the pack regardless as to whether you tell Minecraft to activate it, however.
Lupus590 #22
Posted 03 July 2017 - 11:51 AM
Just a side note about zipping it or not, I have resource packs (for my singleplayer) which are hardlinks junctions to a directory and they work fine. I can even change a file in the resource pack and it is updated ingame.