Difference between revisions of "Talk:KMP Cloud"

From Custom Mario Kart
Jump to navigation Jump to search
Line 18: Line 18:
  
 
::: Does this offer still counts? for the next version of KMP Cloud I'd like a txt file in the following format:
 
::: Does this offer still counts? for the next version of KMP Cloud I'd like a txt file in the following format:
::: name description
+
::: name|description
 
::: Each object (including non-existing ones should have 1 line, non existing object could just have an empty line), this way custom object slots which might me made in the future are also supported.
 
::: Each object (including non-existing ones should have 1 line, non existing object could just have an empty line), this way custom object slots which might me made in the future are also supported.
 
:::--[[User:Vulcanus2|Vulcanus2]] 21:48, 10 May 2012 (UTC)
 
:::--[[User:Vulcanus2|Vulcanus2]] 21:48, 10 May 2012 (UTC)
Line 30: Line 30:
 
::::* [http://opensvn.wiimm.de/viewvc/wii/trunk/wiimms-szs-tools/src/db-object.c?revision=3681&view=markup code file]
 
::::* [http://opensvn.wiimm.de/viewvc/wii/trunk/wiimms-szs-tools/src/db-object.c?revision=3681&view=markup code file]
 
:::: Sorry for the late answer -- [[User:Wiimm|Wiimm]] 17:11, 4 June 2012 (UTC)
 
:::: Sorry for the late answer -- [[User:Wiimm|Wiimm]] 17:11, 4 June 2012 (UTC)
 +
 +
::::: Well it's simply that each line represents an object ID, I'll add my header above it later on so you don't have to worry about it. Objects that don't exist should be an empty line, with exception from 0000, which is called the "null" object in KMP Cloud (see example).
 +
::::: Also a thing to mind is that I use a special char to specify a new line: ~, but since I don't know yet how long a line should be, I'll take care of it later.
 +
::::: Well an example of the start (I have cut some descriptions that are too long to fit on 1 line on the wiki):
 +
null|This is an empty object, it's not loaded in-game.
 +
airblock|The airblock is a solid object with the wall va...
 +
Psea|This is the sea seen on GCN Peach ...
 +
lensFX|Generates a lens flare object when looking at the sun. It's also highly recommed to place this object near the sun.
 +
::::: Now an example of a middle part (starting with object, and also line 0xc7):
 +
<br><br>
 +
f_itembox|A route controlled itembox, you can edit it either explodes or loops.
 +
MashBalloonGC|An airballoon as seen on GCN Mario Circuit. It has an assigned route but also floats from Y to Y.
 +
CarA1|Moving Car from Coconut Mall. It moves exactly like WLWallGC but instead left <> right.
 +
::::: As you see in this example 2 lines are empty because those objects don't exist.
 +
::::: I hope it's enough for you. I intend to put the file both locally and online. The online list will be automatically used in KMP Cloud unless it's set to load the local version, or the connection fails. This way it can be kept up-to-date without the need to update the program itself. The format may be extended in the future, but I have to get to that part in programming yet.--[[User:Vulcanus2|Vulcanus2]] 19:57, 4 June 2012 (UTC)
  
 
== Help Page ==
 
== Help Page ==

Revision as of 19:57, 4 June 2012

Wow! I am really looking forward to this! Really! It would be nice to have a single program that can both add items to the KMP & Place them! I'm just wondering, what did you mean by OBJ Import? I had an idea a long time ago, and it was like this, where you would place objects in groups like (For example) an item box model would be placed in the courses model, and then pasted in place into another Sketchup Window. Then, all item boxes would be in group "Itembox.brres", and each of those in a group within the group in Number like 1, 2, 3... So, if I had placed 3 Boxes, I would put item box 1 into group "itembox.brres:1". And then the exported OBJ would be exported read each object from each group, like it woukd read the group "itembox.brres", and read each within by reading th Numbered groups for each object of that kind, so it reads the Y/X/Z Cordinances, and place that Object in the KMP. Is that what you mean't by OBJ Importing? I had this idea long ago. -- SuperMario64DS, 00:14, 23 January 2012 (CET)

Object List

If you want a text file with all Objects with or without the flags (like KMPItems.xml), just tell me and give me the wanted format. I can also create source code to use it directly in your software.
Wiimm 18:39, 6 March 2012 (CET)

Well I don't specifically want to use it, but the ObjectNames.dll file is fairly simple in structure. It has a GetName function as well as a GetIdx function, and a string array with all known ID's and that's it. Im not sure if that are the right method names, Ill edit it tomorrow if it isn't right. GetName requires an Int32 as input(just "int" in C#, but for you Ill specify the size :P), and GetIdx requires string as input. I don't know the namespace name right now, so I'll have to look for that. I don't know if C and C# can go hand in hand, or if the reference works on any ObjectNames.dll, but if it can, feel free to distribute a self-made ObjectNames.dll.
--Vulcanus2 23:30, 6 March 2012 (CET)
Again: I can easily create a text file in any format, ans also C# source. Here I have different source lists and a script, that reads all of them and create:
  • C sources for my tools.
  • A little DB for the online object query.
  • Another little DB for the online track reference.
  • The wiki table for page "Object".
  • KMPItems.xml
It's easy to support other text exports. I need only the text format (e.g. example code).
Wiimm 11:55, 7 March 2012 (CET)
Does this offer still counts? for the next version of KMP Cloud I'd like a txt file in the following format:
name|description
Each object (including non-existing ones should have 1 line, non existing object could just have an empty line), this way custom object slots which might me made in the future are also supported.
--Vulcanus2 21:48, 10 May 2012 (UTC)
Yes! Please give me an example code with:
  • Beginning of the file (cut+paste)
  • 1 or 2 example objects
  • end of the file (cut+paste)
Do you need an additional header file? See this for example and suggestion:
Sorry for the late answer -- Wiimm 17:11, 4 June 2012 (UTC)
Well it's simply that each line represents an object ID, I'll add my header above it later on so you don't have to worry about it. Objects that don't exist should be an empty line, with exception from 0000, which is called the "null" object in KMP Cloud (see example).
Also a thing to mind is that I use a special char to specify a new line: ~, but since I don't know yet how long a line should be, I'll take care of it later.
Well an example of the start (I have cut some descriptions that are too long to fit on 1 line on the wiki):
null|This is an empty object, it's not loaded in-game.
airblock|The airblock is a solid object with the wall va...
Psea|This is the sea seen on GCN Peach ...
lensFX|Generates a lens flare object when looking at the sun. It's also highly recommed to place this object near the sun. 
Now an example of a middle part (starting with object, and also line 0xc7):


f_itembox|A route controlled itembox, you can edit it either explodes or loops. MashBalloonGC|An airballoon as seen on GCN Mario Circuit. It has an assigned route but also floats from Y to Y. CarA1|Moving Car from Coconut Mall. It moves exactly like WLWallGC but instead left <> right.
As you see in this example 2 lines are empty because those objects don't exist.
I hope it's enough for you. I intend to put the file both locally and online. The online list will be automatically used in KMP Cloud unless it's set to load the local version, or the connection fails. This way it can be kept up-to-date without the need to update the program itself. The format may be extended in the future, but I have to get to that part in programming yet.--Vulcanus2 19:57, 4 June 2012 (UTC)

Help Page

I downloaded it, but i have no idea how to use it. Is the help page done soon?
PC Freak 14:25, 3 June 2012 (UTC)

I wasn't even working on it. I know I should finish it, but I'm also working on Wetland Woods and I have homework etc.
Once I'll finish that page, but not now. --Vulcanus2 14:41, 3 June 2012 (UTC)
OK, but if its finished I can create a version for in the software. I have a program to make it.
PC Freak 15:31, 3 June 2012 (UTC)