TechnicPack / TechnicSolder

PHP web app that brings differential updates to the Technic Launcher and Technic Platform
https://docs.solder.io/
Other
169 stars 167 forks source link

Directory structure issues maybe ? #557

Closed macman73 closed 8 years ago

macman73 commented 8 years ago

Hello

I am having a few troubles getting solder to work properly for me and i am hoping you can help.

I believe I have installed solder correctly and linked it to my technic account and linked modpacks and have used mysql. And the api links seem to be working

/api , api/mod , api/modpack

{"api":"TechnicSolder","version":"v0.7.3.1","stream":"DEV"}

{"mods":{"ars-magica":"Ars Magica","adventure-backpack":"Adventure Backpack","forge":"forge"}}

{"modpacks":{"jb-test":"jb-test"},"mirror_url":"http:\/\/my-ip-address\/repo\/"}

As you see I have been able to add mods, but what I am struggling with is the directory structure of where these things are supposed to live. I have read over the documentation over and over from your pages and just cant seem to get it working.

my repo is at my-ip-address/repo and is public readable and downloadable from web browsers.

In there I have a mods folder

/repo/mods

Inside there i have my 2 mods folders and zip files (I removed ars magica mod for testing purposes but its still in the config)

/repo/mods/adventure-backpack/adventure-backpack-0.8.zip /repo/mods/forge/forge-1.7.10.zip

The zip files have this structure

adventure-backpack-0.8.zip - ../mods/adventurebackpack-0.8c.jar forge-1.7.10.zip ../bin/modpack.jar (forge universal which I downloaded from forge and renamed)

When I hit the install button in the technic launcher I just get

"The modpack jb-test does not appear to be installed or is corrupt, and is not available for Offline Play." I have tried removing relaunching and reinstalling several times.

This is my solder.php

'repo_location' => '/usr/share/nginx/html/TechnicSolder/public/repo/', 'mirror_url' => 'http://my-ip-address/repo/',

One thing I am not sure about at all is the line in app.php

'url' => 'http://my-ip-address/solder.app:8000',

Am I missing a final step or have I got the file structure all wrong or something else.

For clarity I am using an IP address and not a host.domainname

Forgive the duplication I emailed you as well but I am posting this on github as well for the purposes of helping others in the future.

Thankyou for your time

Regards

Jonathan

skwerlman commented 8 years ago

'url' should remain as the default (at least that's how mine is): 'url' => 'http://solder.app:8000',

i assume where you put 'my-ip-address' you are simply filtering out your actual ip, but if not (who knows?) it should be your actual external ip (i.e. it should not start with 192.168 or 10.0).

Finally, you didn't say whether you had run

sudo composer self-update
php artisan migrate:install
php artisan migrate

If not, you'll need to do that to actually use solder.

Finally, it would be helpful if you provided an actual link to your solder instance, so we can see if there are other issues.

macman73 commented 8 years ago

OK so i need to change that URL Yes filtered the ip address but now its below in my instance URL

All of these worked and where done prior to me logging in for the first time all worked.

sudo composer self-update php artisan migrate:install php artisan migrate

My instance is at

solder http://178.63.120.106/api repo http://178.63.120.106/repo

Thankyou for your reply

skwerlman commented 8 years ago

it looks like you haven't set a latest or recommended build for your pack. both must be set for solder to work as expected.

macman73 commented 8 years ago

skwerlman Thankyou so much, that seems to have started things moving, so i am very grateful for that. Can I just say that there is nothing in any documentation I have seen that says to do that.

In my experiments I was trying out those buttons, but at that point I dont think my folder structure was correct.

Thankyou again

skwerlman commented 8 years ago

Happy to help. If the problem is now resolved, please close this issue.