Jump to content


Photo

Address Book


  • Please log in to reply
7 replies to this topic

#1 BBGaming

BBGaming

    Programmer

  • GMC Member
  • 2478 posts
  • Version:GM7

Posted 11 March 2009 - 02:00 AM

I made a very simple address book application to show off my pride and joy, Game Widgets. You can enter, edit, and browse through your contacts and save plenty of information easily. All the saving and loading is taken care of for you. Enjoy:
http://www.box.net/shared/1dlh08k3jy
Posted Image
Posted Image
All code and stuff is free to use and share however you want. If you want an explanation on how something works, feel free to post here. Be sure to check out Game Widgets here which made this possible.
  • 0

Posted Image
Game Widgets
- Your pure-GML solution to API DLLs. Featured in Markup Magazine!

My Portfolio - All my good games and resources
Moved away from the forum - e-mail me if you need quick contact (hi_146@hotmail.com).


#2 iluvfuz

iluvfuz

    GMC Member

  • GMC Member
  • 1452 posts
  • Version:GM:Studio

Posted 11 March 2009 - 02:03 AM

Nice, it would probably be useful. Good job on the Game Widgets script!
  • 0

#3 BBGaming

BBGaming

    Programmer

  • GMC Member
  • 2478 posts
  • Version:GM7

Posted 11 March 2009 - 11:11 PM

Thank you! :)
  • 0

Posted Image
Game Widgets
- Your pure-GML solution to API DLLs. Featured in Markup Magazine!

My Portfolio - All my good games and resources
Moved away from the forum - e-mail me if you need quick contact (hi_146@hotmail.com).


#4 FantiX

FantiX

    GMC Member

  • GMC Member
  • 175 posts

Posted 16 September 2009 - 06:01 PM

you could add picture support and a profile search engine, that would be cool.
maybe you could make it into an online address book.

Edit:
actualy forgot to say, nice done!

Edited by FantiX, 16 September 2009 - 06:02 PM.

  • 0

#5 Ace

Ace

    GMC Member

  • GMC Member
  • 372 posts

Posted 22 January 2011 - 10:51 PM

This is very very good dude! You went through a lot of trouble to get such amazing features directly into GM and even made them lightweight and easy to use!

People may not recognize it but these features are not just tediously implemented but also implemented very well! Thanks for taking the time to do this for the community dude. There are at least a few people here such as myself who actually do appreciate the time and effort it took you to create this and actively release it to the community.

So thank you very much dude. :)



Btw, is there an extension version of this? There totally should be. An action library too. These widgets are so universally useful. Someone should really give you a hand with that if there isn't. You can include sprite files in the Extension Maker after all. I wish I had time to give you a hand with this dude.

Edited by Ace, 22 January 2011 - 11:05 PM.

  • 0
Posted Image Posted Image Online Fighting & Roleplay Game

ZERO ENGINE
Posted Image

#6 aburgin

aburgin

    GMC Member

  • GMC Member
  • 48 posts
  • Version:GM8.1

Posted 23 November 2011 - 05:14 PM

Greetings !!

This is great work by the way...... however ... you wanted to know about bugs. I've been playing with this for a while .... trying to understand it and test it out...

You have a bug !

I've noticed two scenarios where the data becomes corrupted. You can enter data all day long, and it displays fine..... absolutely great. However, there are two types of errors when you edit records

OK ... the set up ......

Enter into the phone book at least 3 records

(works fine so far...)

Then go to the edit tab.....

1) if you edit the first name of last name in any way... (and save) the data is corrupted when you go back to the view list tab (first tab).. in the control object, under the edit function, there is no function for replacing the name fields (like if you misspelled a name). If you want to keep it that way, the fields should not be editable. ie change the color of the field or text.

2) If you edit a record (not changing the name's fields), save the record, the last record you changed becomes the first record in the display record list (1st tab). Interestingly enough, the 1st record is still there, but not displaying in order... (a pointer is not being reset ????)

B-T-W..... I'm surprised nobody pointed this out

Notes:
compiled in game maker 7 (registered) with a windows XP system
compiled again in a game maker 8.1 (registered) with a windows 7 system (with some script/code updates for game maker 8.1)

the same errors occurs either way..... I look forward to see your your code changes...

Also note, the output in encrypted, maybe (?!?) the output should be editable??
  • 0

#7 aburgin

aburgin

    GMC Member

  • GMC Member
  • 48 posts
  • Version:GM8.1

Posted 06 January 2012 - 03:11 PM

Greetings

For anyone who would like to use this program......

I finally got some time to look at the application and find out why the edit function doesn't work

In the Object "o_control" under the "STEP" function

Look for the following code "if GW_Button_GetState(Editconfirm)=global.GW_Button_Pressed"

Change the section under that to the following
/////////////////////////////////EDIT RECORD //////////////////////////////////////////////////////////
if GW_Button_GetState(Editconfirm)=global.GW_Button_Pressed
{//here's saving an edited entry:
  if GW_Edit_GetText(Newfname)="" or GW_Edit_GetText(Newlname)=""
    show_message("Please enter a first and last name!")
  else
  {
    var tmp;
    tmp=GW_Edit_GetText(Newfname)+" "+GW_Edit_GetText(Newlname)

    ds_map_replace(fname,tmp,GW_Edit_GetText(Newfname))
    ds_map_replace(lname,tmp,GW_Edit_GetText(Newlname))
    ds_map_replace(addr1,tmp,GW_Edit_GetText(Newaddr1))
    ds_map_replace(addr2,tmp,GW_Edit_GetText(Newaddr2))
    ds_map_replace(city,tmp,GW_Edit_GetText(Newcity))
    ds_map_replace(state,tmp,GW_Edit_GetText(Newstate))
    ds_map_replace(zip,tmp,GW_Edit_GetText(Newzip))
    ds_map_replace(phone1,tmp,GW_Edit_GetText(Newphone1))
    ds_map_replace(phone2,tmp,GW_Edit_GetText(Newphone2))
    ds_map_replace(email1,tmp,GW_Edit_GetText(Newemail1))
    ds_map_replace(email2,tmp,GW_Edit_GetText(Newemail2))
    
    GW_Listbox_EditItem(ListBrowse,GW_Listbox_GetSel(ListBrowse),tmp)
    data_save()
    show_message("Entry edited.")
  }
}

With that change the edit function works GREAT ... at least so far !!!

Please note: that the program does not sort data, so it keeps the data in the order you enter it ... and !!!!

the data field for email's is only about 22 or 23 characters long (original program code settings). If the data entered is longer, the program goes nuts.
(that's my next stop... as well as look at ways to implement a sort function)

Otherwise - I have the program up and running and it appears to working great !!!
  • 0

#8 Lordfef

Lordfef

    GMC Member

  • GMC Member
  • 177 posts
  • Version:GM:Studio

Posted 13 October 2012 - 05:25 PM

i Try this in GameMaker:Studio but there are many obsolete functions like:

variable_global_exists
execute_string (in many point of the project)
screen_refresh
screen_redraw
etc...

is there a version update to try?

Thank's
  • 0