Jump to content
MakeWebGames

gmoore

Members
  • Posts

    267
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by gmoore

  1. Okay made some changes which maybe you can add (purpose to add some location interest): Added 2 tables: CREATE TABLE `location_master` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(50) DEFAULT NULL, `image_url` varchar(250) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1; CREATE TABLE `location_type` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(50) DEFAULT NULL, `image_url` varchar(250) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;   Changed locations: CREATE TABLE `locations` ( `id` int(10) unsigned NOT NULL, `name` varchar(80) COLLATE utf8_bin DEFAULT NULL, `description` text COLLATE utf8_bin, `location_master_id` int(11) DEFAULT NULL, `location_type_id` int(11) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;   locations/lib.php <?php function CurrentPlayerLocation() { $currentLocation = GetUserVariable(playerLocation); if ($currentLocation == NULL) $currentLocation = GetConfigValue("defaultLocation","locations"); return $currentLocation; } function SetPlayerLocation($location) { SetUserVariable(playerLocation, $location); } function CurrentPlayerMasterLocation() { global $db; $currentLocation = GetUserVariable(playerLocation); if ($currentLocation == NULL) $currentLocation = 0; $currentMasterLocation = 0; $result = $db->Execute("select location_master_id from locations where id = ?", $currentLocation); if ($result->EOF) { $result->Close(); return $currentMasterLocation; } if ($result->fields[0] != NULL) { $currentMasterLocation = $result->fields[0]; } $result->Close(); return $currentMasterLocation; } function CurrentPlayerLocationType() { global $db; $currentLocation = GetUserVariable(playerLocation); if ($currentLocation == NULL) $currentLocation = 0; $currentLocationType = 0; $result = $db->Execute("select location_type_id from locations where id = ?", $currentLocation); if ($result->EOF) { $result->Close(); return $currentLocationType; } if ($result->fields[0] != NULL) { $currentLocationType = $result->fields[0]; } $result->Close(); return $currentLocationType; }   locations/home_special.php $result = $db->Execute("select name,description,location_master_id from locations where id = ?", $currentLocation); $locationName = $result->fields[0]; $locationDescription = $result->fields[1]; $locationMaster = $result->fields[2]; $result->Close(); $result = $db->Execute("select name from location_master where id = ?", $locationMaster); $locationMasterName = $result->fields[0]; $result->Close(); TableHeader($locationName . ' [' . $locationMasterName . ']', false);   Added to wizard_logic: id name code label_1 label_2 label_3 label_4 label_5 param_1 param_2 param_3 param_4 param_5 34 player in master location CurrentPlayerMasterLocation() == @p1@ Master Location select id,name from location_master order by name 35 player NOT in master location CurrentPlayerMasterLocation()! == @p1@ Master Location select id,name from location_master order by name 36 player in location type CurrentPlayerLocationType() == @p1@ Location Type select id,name from location_type order by name 37 player NOT in location type CurrentPlayerLocationType()! == @p1@ Location Type select id,name from location_type order by name Config.xml: <?xml version="1.0" encoding="UTF-8"?> <configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation=""> <module version="1.0.6" name="Locations" author="Alain Bertrand" description="Locations and travel between locations." /> <key name="defaultLocation" description="The default location id (when the player starts)" value="1" /> <variable name="playerLocation" /> <table name="locations" /> <table name="location_paths"> <condition_wizard column="condition_code" /> <action_wizard column="action_code" /> <lookup key="id" column="location_id" table="locations" display="name" /> <lookup key="id" column="to_location_id" table="locations" display="name" /> <lookup key="id" column="location_master_id" table="location_master" display="name" /> <lookup key="id" column="location_type_id" table="location_type" display="name" /> <table name="location_master" /> <table name="location_type" /> </table> <theme_table name="locations" /> <theme_table name="location_paths" /> </configuration>   Master Location is supposed to be a high level location ... it could be a country over cities (Like Germany with the Locations being Berlin, Bonn, Hamburg). Location Type is supposed to be a low level location ... it could be docks under city (Like Docks, Business, Apartments under the Location Berlin) I didn't link the images in (which I find to be crutial for interest), nor the names yet. But I made it work with crimes with the wizard such as: Crime: Burn Boat ..... Condition 'player in location type == 1' Location Type 1 = Docks So Location Berlin connections: Docks (Location with specialized things to do) Town Hall (Location with specialized things to do) Business (Location with specialized things to do) Residential (Location with specialized things to do) Each with stuff to do. Greg
  2. I think that would be awesome. Something that personalizes the system would make it more powerful. It doesn't have to be a 2-d map like NEAB. I intend on starting with a stock version and worrying about customizations and such as I get time. Last week I had all the time I needed. Now, not so much. Thank you for listening to me. Greg
  3. (Gotta get out the door or I will be late but CAN'T stay away from the forum) I ***DO*** want a tile map but don't expect it. Anything that gets some graphics into the game is A++, however I was trying to keep it simple. I think some location stats would give some personality to the locations. Such as in a crime style game, the number of tenements might increase the ease of crime but the number of luxury apartments might increase the value of the crime. I don't know just thinking outloud. I am trying to see what I have worked on over the last couple weeks if it is even worth giving to the community. I have been mostly working on my minimalist version which doesn't help the engine. Mostly I just found bugs and such when modules are expecting other modules (which I have posted either fixes or Alain fixed them). Was just starting on the custom modules sections. My new job is filtering websites like 99% so no longer can poke around during the day. Mentally I need to get a game up even if it is not all that I wanted just to keep my mind in it. Otherwise it is too easy to get caught up in life and another year passes. (Okay wife yelling for me to get out the door. It's snowing and I have a little car lol) Greg
  4. It wasn't so much the mapping as an image associated with the location. Thought mapping is WAY cooler (NEAB has it, you would think it could be cut and paste ... lol, I know not so easy). But stats about the location is very important. This could affect everything from actions to training to whatever. Just trying to get something up with as little time programming and more time spent on content. As my time has dwindled from 8-10 hours a day to maybe 1. Greg
  5. Hey Someone, you are posting while I read. Sure but not a map so much (too much work). But your first image was dead on for detail. It's not a crime game, but if it was, I would take an image of the Brooklyn Bridge as a page header and say there are 2,000 people, 10 police and 32 street venders. Which I could use to determine what I could do there in the crime module. Just trying to see what would be missing in the base NWE before I could get started. Without all my psycho changes I have done and felt I need to do. Greg
  6. Okay get this, the first day they have me take an intelligence test. Math, Verbal, Logic. I mean it's too darn late lol, I started already. Greg
  7. (As I am getting ready to go to the pit of lions and boredom ... lol, love working at home, the money was just too good) Of course. I wasn't asking for custom programming. I spent 2 hours sifting through things ti determine HOW I could get things up quick while my daughter had ballet class. I have been trying to make NWE perfect for me, but as we all know as programmers, there is no PERFECT system. If there was we'd all retire lol. The only thing in the system I saw that was crutial to success was: Locations need more details. This should include an image(just a field location_image with upload capability) and some sort of stats (could be location_stats table, location_id, stat_type, stat_amount). This way we can add Walls 20, Moat 30, Spikes 15 to make it more interesting, something other than Somewhere, where you can move to SomewhereElse. Just cooler. That's it, I think I can get things up quick with that. My time going to zero really sucks. And thank you for the database table mod. Greg
  8. Starting my new job has made me realize my time has just gone to zero. I am going to put up a stock version of NWE to at least feel like I am running something. But IMPLORE you (and I mean to keep me sane) to put an ownership for a location (based on Clan) and something that gives the location uniqueness. So I can see something different from location to location like a statistic or value or something.. Please help me lol. Greg .. the corporate owned. Is that like a zombie?
  9. Lol raving. I think this module is the best one in the system (at least the most useful to me). The features cut 12 edit programs I was writing. I am just going to use this. Thank you for saving me days and days of work. Greg
  10. Also I should point out, I post module ideas not so much I think someone is going to do them, but as a reminder of things that rattle in my brain. Well off to work, first day ... no nwe (pout). Greg
  11. Thought was to have these routines: MakeBookmark RemoveBookmark ShowBookmarks something like that. Then anywhere we want something bookmarkable (like editing the text with the little pen) we could. This might be good to let the user define things they don't want to have to dig for. Greg
  12. The security token is generated automagically by the system. Greg
  13. Just a thought, if someone has time to develop this. The ability to bookmake a link and have a drop down of these links as bookmarks: Example Bookmarks -- Edit Forum Table (http://www.thissite.com/index.php?p=admin_edit_table&t=forum) -- View Player 1 (http://www.thissite.com/index.php?p=view_player&pl=fred) Etc.... And then there could be a [bookmark This] icon next to anylink so people could go back to it anytime. Again, just a thought. Greg
  14. I get it now. You just upgrade the other 2 packages to match the code base. Gotcha! Greg
  15. Is there a format for the config file in the modules to limit the fields that show up on the list? btw seems to operate just fine. Moving over my huge table to see the pagenation. :) Awesome addition. Greg
  16. Alain is like 1.15 release B sort of thing? Is it different than before? Greg
  17. Remember charge backs can make your profits tank. Just my opinion. G
  18. Reoccuring billing can be a problem. Gamers are notorious for declining charges (and costing you money). One time, One Fee, They Don't Come Busting For Thee. Lol
  19. Speaking of NEAB which I bought first (the 3-D aspect is what I 'really' wanted). Do you support it off the other forum when I get around to it? I just couldn't get it running for the life of me. And then I saw NWE. Greg
  20. Well I may also FINALLY get a smartphone (yes I have been protesting) so I can keep in touch more. Greg
  21. Perfection makes the world go around. Well maybe not governments but programmers :) No, I know myself. I need to put up something I don't want to or think is ready. This way I will go nuts trying to get features on in the hour here and there I will have. Now I have roughly 40 hours plus a week to work on it which ends in 8 days.
  22. Oh, not leaving. I just decided to go into emergency mode and get one site up before I get stuck 9-5 in an office. Even if its only 5% what I want. Otherwise I will always just wait. This way my freakish need to improve it will take over my paranoia of putting something up too soon. Greg
  23. Well I just am about to change jobs. So my work at home capability just went up in smoke. So I probably will only be on once or twice in a day. Just in case I don't respond all that quickly. (Not leaving, just curtailed time) Greg
  24. I haven't found a youtube use for it yet but I thought it was a great idea. Especially in the future to let players link in 'how to' play type videos. Greg
  25. See I wasn't insane lol Well at that moment.
×
×
  • Create New...