Jump to content

Recommended Posts

Posted

HI, i am not sure how to arrange my mod or if i did arranged it correctly (and now it's more important because i want to connect it to git).

1. I have data in minecraft.csv bu ti cant seem to make relative path work, how can i make it work (I'm accessing it from ItemMap.java) 

2. I'm not sure if WITI_Cleint.luanch or WITI_Cleint.luanch should be there, where should they be?

3. Did i build the resources correctly without putting akdubh.WITI in there?

4. I have in the folder util a file that collects data but isn't relevant to the mod distributions etc. itself, where should i put it?

5. and lastly, as I said i wish to connect it to git, to what folder should I (and where should I put the git ignore)?

 

I know It's allot of questions, It's my first mod and I'm appriciting the help in the forum.

Many thanks! akdubh

mod tree.PNG

Posted

I'm sorry if i was unclear, I'll explain:

14 minutes ago, diesieben07 said:

Please clarify. Show the code where you are trying to access this file.

i uploaded the code, i want to access the file from ItemMap.java, right now i'm using absolute path, but only as a temporary solution.

If i give it relative path It outputs:  java.io.FileNotFoundException. (uploded another photo of what I'm trying to do).

22 minutes ago, diesieben07 said:

Also, you should probably put it in a folder named after your ModID.

do you mean akdubh.WITI (name.modname)?

 

23 minutes ago, diesieben07 said:

I am not sure what these files are. What are you using them for? They should most certainly not be in Git (see below).

I'm not sure myself but i attached a picture of the client and i think it's how i launch the mod (not directly ofc), so where should

I put them (or how should I launch o/w?)

 

25 minutes ago, diesieben07 said:

I assume you are talking about your package name? In that case either use your domain name (e.g. com.example.project) or, if you don't have one, something like mod.modid.

I'm asking if there needs to be packages (akdubh.WITI - name.modname)  between src/main/resources to the minecraft.csv like in

src/main/java

 

32 minutes ago, diesieben07 said:

This is very vague. Not sure how to answer this without more info.

 

You can see the tree in the picture i added to the the original question, I used the scripts inside of it to make resources for the mod (minecraft.csv).

The script themselves aren't a part of the mod but a tool for it.

 

35 minutes ago, diesieben07 said:

The .gitignore files should be in the root of your project...

Thanks!

 

I'm hoping I am clearer (as you may have guessed English isn't my mother tongue and even though i understand and talk i barely write and it shows).

If I'm still confusing tell me and thank you!

inside ItemMap.PNG

relative path vs absolute.PNG

WITI_Client.launch.PNG

Posted (edited)

thank you! It's late now, ill try to implement tomorrow and post here to be sure it's right, also sorry for uploading photos. GN (in here)

Edited by akdubh

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.