ID:178732
Apr 12 2002, 9:34 am
|
|
how do u get the game u made to the hub?
|
In response to Air Mapster
|
|
Air Mapster wrote:
In DreamMaker, go to Build -> Package Files, select World Executable Files and create the zipfile. nammi.dme:12:error: bad embedded expression [my firs] // BEGIN_PREFERENCES // END_PREFERENCES <--- what am i supose to write there |
In response to Ashcool
|
|
WTF are you going to,you don't code to get your game in the hub!
|
In response to Ashcool
|
|
// BEGIN_PREFERENCES
// END_PREFERENCES <--- what am i supose to write there THAT comes in the dme file NOT the code file the stupid computer says that there is an error EXACLY there it is nammi.dme:12:error: bad embedded expression [my firs] |
In response to Ashcool
|
|
That error means you put an invalid var within brackets ( [] ), and since it's in your .dme file that means the error is at the end of one of your .dm code files.
|
In response to Nadrew
|
|
ob
icon = 'zack.dmi' //make it so all mobs will be created with the person icon var hp = 10 str = 5 def = 2 armor_equipped = 0 weapon_equipped = 0 attacks verbs Super_Slash(mob/M as mob in oview(2)) // can attack someone TWO spaces away var/damage = usr.str - M.def + 5 if(damage <= 0) usr << "[M] easily dodges your attack!" M << "You easily dodge [usr]'s attack." else M.hp -= damage view() << "[usr] super slashes [M] for [damage] HP!" M:deathcheck() Login() icon_state = gender //when a player logs in, get them the right icon state for ..() //the gender of their key. Then call the parent! proc Myproc() if(src.str > 4) src << "Your strength is greater than 4" else src << "Your strength is less than 4" deathcheck() if(src.hp <= 0) view() << "[src] dies!" src.hp = 10 src.Move(locate(1,1,1)) usr.def += 1 usr.str += 1 verb Myproc_call_verb() usr:Myproc() Attack(mob/M as mob in oview(1)) var/damage = usr.str - M.def if(damage <= 0) usr << "[M] easily dodges your attack!" M << "You easily dodge [usr]'s attack." else M.hp -= damage view() << "[usr] attacks [M] for [damage] HP!" M:deathcheck() turf grass //define a "grass" prototype, which is a kind of turf... icon = 'grass.dmi' //that has an icon named 'grass.dmi'. In single quotes! water icon = 'water.dmi' stone icon = 'stone.dmi' world name = "My First Game." turf = /turf/grass obj sword Get() set src in oview(1) usr.contents += src view() << "[usr] picks up \a [src]" Drop() new/obj/sword(usr.loc) view() << "[usr] drops \a [src]" del(src) Equip() if(usr.weapon_equipped == 0) usr.str += 2 usr.weapon_equippped = 1 view() << "[usr] equips a sword." else usr << "You are already wielding something." Unequip() usr.verbs += /mob/attacks/verbs/Super_Slash if(usr.weapon_equipped == 1) usr.str -= 2 view() << "[usr] unequips a sword." else usr << "You aren't wielding this." armor Get() set src in oview(1) usr.contents += src view() << "[usr] picks up [src]" Drop() new/obj/armor(usr.loc) view() << "[usr] drops [src]" del(src) Equip() if(usr.armor_equipped == 0) usr.def += 2 usr.armor_equippped = 1 view() << "[usr] wears some armor." else usr << "You are already wearing something." Unequip() if(usr.armor_equipped == 1) usr.def -= 2 view() << "[usr] takes off some armor." else usr << "You aren't wearing this." my WHOLE code now i ask nadrew :) where is the wrong [ ] lol :) |
In response to Nadrew
|
|
OOPS sorry i think i figured it out
|
In response to Ashcool
|
|
nammi.dme:18:error:ashcool:undefined var
nammi.dme:18:error:first:undefined var nammi.dme:18:error::expected a constant expression // DM Environment file for nammi.dme. // All manual changes should be made outside the BEGIN_ and END_ blocks. // New source code should be placed in .dm files: choose File/New --> Code File. // BEGIN_FILE_DIR #define FILE_DIR . // END_FILE_DIR // BEGIN_INCLUDE #include "zack.dm" #include "konmal.dmp" // END_INCLUDE // BEGIN_INTERNALS // END_INTERNALS // BEGIN_PREFERENCES // END_PREFERENCES can u help me fix that error |
In response to Ashcool
|
|
It's not in that file. I told you before, when an error occurs in your .dme file it means the error is near the end of one of your .dm files..
|
In response to Nadrew
|
|
ok when i select World executable files there come 3 forms i hawe to fill one at the top wich i dont hawe to fill and in the middle (do not know i left it blank)and at the bottom is a form to am i supose to fill that one (i put [ashcool].[first rpg])
if not when i click the hub on this site and make the game go to the hub then i hawe to fill forms ok now on the first page i hawe to fill where the zip file is so i select it and push contineu BUT then says PLEASE GO BACK and put in a ZIP file and i cant do that. if i AM suposed to fill in that form what did i wrong?? ([ashcool].[first rpg]) |
In response to Ashcool
|
|
Ashcool wrote:
if i AM suposed to fill in that form what did i wrong?? ([ashcool].[first rpg]) Aha, this is the problem. Do it without the brackets (something like Ashcool.FirstRPG). DreamMaker was trying to put "[ashcool.[first rpg]" into the .dme file for packaging, but it interpreted the stuff in brackets as variables. Variables with those names don't exist, of course, thus the error. I wonder if Dantom should make it strip out brackets for this purpose? |
In response to Air Mapster
|
|
OH THANK U SO MUCH!!!!!!
and i learned to be MORE SPESIFIC only THEN u will get your answer :) |
In response to Kappa the Imp
|
|
ok i did all that got the zip file and put it in the hub entry now how do i play it as LIVE so everybody can play i mean what am i supose to host what makes it actually go to the hub so we can play it
|
Next, go to Your Hub on the left sidebar at this site. Click New Hub Entry and follow the instructions...