File types for Includes

Need help with a macro you are writing? Ask here!

Moderator: MacroQuest Developers

jacensolo
a snow griffon
a snow griffon
Posts: 427
Joined: Wed Feb 14, 2007 8:51 am
Location: Right behind you

File types for Includes

Post by jacensolo » Wed May 16, 2007 10:08 pm

I wanted to know if I could put #includes in other file types, because I wanted to make an INI for each of my characters, and then add "#include"s to each character's INI. I thought that it might work, if I used "|**" and "**|" around the INI data, like this:

mycharname.ini

Code: Select all

#include filenamehere.inc


|**

[section1]
key1=2

[end]
**|
This all hinges on whether or not MQ can use other file types as Includes, or if it only works with .inc files. I editted the wiki at http://www.macroquest2.com/wiki/index.p ... lude_Files , and added in a section stating a basic definition of include files, how to call them in a macro, and that you COULD use any plaintext filetype for include files, but I don't know if that is the case. Any help would be much appreciated. Also, just after posting this I saw a short section on Snippets in the Macro/Snippet questions section at http://www.macroquest2.com/wiki/index.p ... s#Snippets , but the information there regarding my question is a little vague. It says that traditionally includes end in .inc, and that the name does not matter. Does this mean that the filetype does not matter? Or does it just mean that the file name does not matter, but it must be .inc?

User avatar
dont_know_at_all
Developer
Developer
Posts: 5450
Joined: Sun Dec 01, 2002 4:15 am
Location: Florida, USA
Contact:

Post by dont_know_at_all » Wed May 16, 2007 10:39 pm

There are no restrictions on the filename.

xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: File types for Includes

Post by xyilla » Wed Aug 13, 2025 12:17 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: File types for Includes

Post by xyilla » Wed Aug 13, 2025 12:19 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: File types for Includes

Post by xyilla » Wed Aug 13, 2025 12:20 am