Menu

LEX File Exchange
EA Support Files
SC4 Wikipedia
Network Addon Mod
Dependencies
Chat

Author Topic: How to create Plopable items for the Mayor Menu  (Read 74098 times)

0 Members and 1 Guest are viewing this topic.

Offline jeronij

Re: How to create Plopable items for the Mayor Menu
« Reply #180 on: July 06, 2013, 04:10:16 PM »
Hello,

I have two questions
1) can i register range F7EC****, which is also my texture range...?
2) this may be out of place here but since this tread is dealing with MMPs it's worth a try. is there an index somewhere for registering Occupant Groups? In my attempt to stop the wildlife to be spawned all over the place I came across the possibility to use LUA scripts to define and add occupant groups to MMPs and through that spawn automata. Now I would like to create a few of those and would, of course, like to avoid conflicts. I checked my plugins and the new_properties.xml for occupant groups that have been used and it does seem save to use my texture range as well. (since i don't think i'll be making a lot of wealth dependent textures, i could use those ranges for other stuff, right?)

my apologies if this doesn't belong here
rusekrax

Hello, regarding 1) --> Done :)
regarding 2) --> I am sorry but I am not aware of such and index :(. Perhaps you may want to start it? ;)

May I get a MMP range?  It will be appreciated.  ;)

Done°° I assigned 81BB****. I hope this is ok ;)

I'd like to reserve 2b2c****, please.

Reserved °°  ;D

If possible, I wish to reserve the range "B191 _ _ _ _ ".

Also reserved °°°  :thumbsup:
I am currently not active - Please, contact Tarkus for any site related matter. Thanks for enjoying SC4D :D


Autism Awareness;  A Father Shares
Mallorca My Mayor Diary


Offline rusekrax

  • Forums Inhabitant
  • *
  • Posts: 11
  • Total likes: 0
  • Reputation: 1
  • Your slogan here
Re: How to create Plopable items for the Mayor Menu
« Reply #181 on: July 20, 2013, 05:53:38 AM »
Thank you jeronij! Maybe I will start one in a little while along with a development thread for automated MMPs, if there is any interest in that. Got some tech issues to settle first...

Offline mgb204

Re: How to create Plopable items for the Mayor Menu
« Reply #182 on: August 03, 2014, 05:25:30 AM »
Hello, can I request a range for MMPs please, I would like the FFFF range since it appears to be free, but if it's not I would take whatever is available. Thanks.

Just want to add here, in lei of formal conformation, I am using the FFFF range, so please don't also use it :).
« Last Edit: September 27, 2015, 06:09:33 PM by mgb204 »

Offline Ernestmaxis

  • BeNeLux Team
  • Forums Councilmember
  • *
  • Posts: 80
  • Total likes: 54
  • Reputation: 0
  • Your slogan here
Re: How to create Plopable items for the Mayor Menu
« Reply #183 on: November 08, 2015, 02:26:16 PM »
I would like to request a MMP Line
Can I have EA533*** till EA534 ***  ?

Offline Girafe

  • Grand master
  • Administrator
  • Forums Guru
  • *
  • Posts: 3465
  • Total likes: 517
  • Reputation: 19
  • Ƒℓ⃝яaℓerô
  • CL:
    Mother Nature's Son
Re: How to create Plopable items for the Mayor Menu
« Reply #184 on: November 10, 2015, 04:43:27 AM »
It seems it s free. Take it.

Could a moderator edit the 1st post with this new range, I cannot, ty  ;)
The Floraler

This is the end, hold your breath and count to ten, feel the earth move, and then...

*   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *    *   *   *   *   *    * 

Offline vortext

  • Administrator
  • Forums Guru
  • *
  • Posts: 3364
  • Total likes: 575
  • Reputation: 23
  • CL:
    Street Smarts
Re: How to create Plopable items for the Mayor Menu
« Reply #185 on: November 10, 2015, 05:05:17 AM »
updated first post to include mgb's & Ernestmaxis' ranges.

Should probably also update the rest of the content sometime, it's a bit of a mess atm.  &mmm
time flies like a bird
fruit flies like a banana

Offline GameFrog

Re: How to create Plopable items for the Mayor Menu
« Reply #186 on: January 04, 2016, 12:12:33 PM »
I would like to reserve BBBB**** range if possible. If there's any problem I don't mind using another range.

Thanks. :)

Offline vortext

  • Administrator
  • Forums Guru
  • *
  • Posts: 3364
  • Total likes: 575
  • Reputation: 23
  • CL:
    Street Smarts
Re: How to create Plopable items for the Mayor Menu
« Reply #187 on: January 04, 2016, 12:19:26 PM »
Seems to be open still, so I've reserved the range.
time flies like a bird
fruit flies like a banana

Offline Golhbul

Re: How to create Plopable items for the Mayor Menu
« Reply #188 on: February 19, 2016, 06:14:47 AM »
Hello, can I request a range for MMPs please, I would like the DDDD range since it appears to be free, but if it's not I would take whatever is available. Thanks.

Offline Girafe

  • Grand master
  • Administrator
  • Forums Guru
  • *
  • Posts: 3465
  • Total likes: 517
  • Reputation: 19
  • Ƒℓ⃝яaℓerô
  • CL:
    Mother Nature's Son
Re: How to create Plopable items for the Mayor Menu
« Reply #189 on: February 19, 2016, 06:31:55 AM »
Given to you

The Floraler

This is the end, hold your breath and count to ten, feel the earth move, and then...

*   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *    *   *   *   *   *    * 

Offline selles

Re: How to create Plopable items for the Mayor Menu
« Reply #190 on: June 14, 2016, 09:35:50 AM »
Hello, could I please reserve the range F72C****?

Also, are there plans to fix the tutorial? It's a little difficult to follow in its current state.

Offline 11241036

  • Forums Mayor
  • *
  • Posts: 136
  • Total likes: 6
  • Reputation: 0
  • Your slogan here
Re: How to create Plopable items for the Mayor Menu
« Reply #191 on: September 18, 2016, 10:27:43 PM »
Sorry to bump, but if possible, can I reserve the range F85C****?

Offline vortext

  • Administrator
  • Forums Guru
  • *
  • Posts: 3364
  • Total likes: 575
  • Reputation: 23
  • CL:
    Street Smarts
Re: How to create Plopable items for the Mayor Menu
« Reply #192 on: September 21, 2016, 11:31:48 AM »
Both ranges were still available so I've reserved them.  :)

And yeah, could have sworn I'd already fixed the tut to some degree, but apparently not. Will look into that.
time flies like a bird
fruit flies like a banana

Offline Ernestmaxis

  • BeNeLux Team
  • Forums Councilmember
  • *
  • Posts: 80
  • Total likes: 54
  • Reputation: 0
  • Your slogan here
Re: How to create Plopable items for the Mayor Menu
« Reply #193 on: January 23, 2017, 10:07:38 AM »
Need an extra range 535*** almost finished can I get the 536*** also?

Offline vortext

  • Administrator
  • Forums Guru
  • *
  • Posts: 3364
  • Total likes: 575
  • Reputation: 23
  • CL:
    Street Smarts
Re: How to create Plopable items for the Mayor Menu
« Reply #194 on: January 30, 2017, 02:39:31 PM »
Hm according to first post you have range 0xEA53**** which in theory offers space for 65k+ items. . . Now I know you're prolific in the MMP department but having a hard time believing all IIDs are already taken. Also, the next range would be 0xEA54, which is indeed still available if needed.
time flies like a bird
fruit flies like a banana

Offline Ernestmaxis

  • BeNeLux Team
  • Forums Councilmember
  • *
  • Posts: 80
  • Total likes: 54
  • Reputation: 0
  • Your slogan here
Re: How to create Plopable items for the Mayor Menu
« Reply #195 on: January 30, 2017, 03:16:47 PM »
Didnt you remeber this post? ? ? ?:)

At that moment I didnt had the experience with the hexadecimal counting with the range 533 and 534 cause it seems to work without it.
I start counting with numbers and letters on EA53500.
I could have throw all MMP's away but didnt cause you wanted to. At the time I have released the first lex upload I had made 269 MMP's.

A year later I started again with the range of 535
With a count of 393 MMP's with 8 rotable clicks = 3040 clicks
I start counting with numbers and letters on EA53500.
So im on EA535C09 so all the IID from EA535 are beeing used (see document in the attachment)

Hope you understand

Ernest

------------------------------------------------------------------------------------------------------------------------------------------------[em



Hi Ernest,

yes of course you can also continue in the current range. Though again I'd advice you to keep track and work systematically because it's very easy to lose oversight (speaking from experience here ::)).

Quote from: Ernestmaxis on December 09, 2015, 09:15:36 AM

    I have tried them all. All MMP's are working even if I have used a non hexadecimale range.


Hm yeah, I may have explained this poorly. The numerals 0 t/m 9 are part of the hexadecimal system too, so the MMPs will work fine indeed, don't worry.

What's different - and slightly confusing - is that the hexadecimal system also uses letters to count with, namely A(=10), B(=11), C(=12), D(=13), E(=14), F(=15). It's weird to count with letters at first and definitely takes some getting used to.

To take an example from MMP Vending machine 7-Up.dat. The IIDs jumps from EA533779 to EA533780. However, this leaves EA53377A t/m EA53377F unused.

I hope it's clear that skipping those 6 available IIDs will add up to quite a large number of unused IIDs in the long run, especially seeing your new and ambitious project. However, I understand you don't want to change course halfway so just keep the letters in mind for future undertakings.

Finally, it really is a monumental MMP project, it will be greatly appreciated by many for sure!  :thumbsup:

Take care, Erik

Offline mgb204

Re: How to create Plopable items for the Mayor Menu
« Reply #196 on: January 30, 2017, 03:56:36 PM »
I don't think anyone wants to stifle creativity or create more work for modders. But if ranges are simply allocated without due care, we'd soon run out of IDs for people to use. It's not practical to maintain a database of randomly selected IDs, we're talking billions of IDs here. So the only way to manage it is to group them into sets based on the prefix or "family" ID. If you've been allocated IDs and skipped the use of some, the best solution is to go back, find those you didn't use and start with them. Giving out new ranges might be the easy solution for you as a modder, but it brings real problems for managing the ranges.

If you need help understanding Hexadecimal IDs, we're willing to talk you through it. In fact, I can go one better. Give me your assigned range, along with the list of used IDs. I'll send you a spreadsheet in numerical order (hex) of the remaining IDs, so you can just tick them off as you use them. I know cases where millions of IDs are basically now unusable because of bad practises in terms of the ordering/management of assigned IDs. Just giving out more in these circumstances is not the solution.

I hope you understand, this isn't meant to tell anyone off, but it's better to work with you and others to teach and resolve problems, than simply try to swerve around them.

Offline twalsh102

  • Forums Councilmember
  • *
  • Posts: 99
  • Total likes: 83
  • Reputation: 2
  • Your slogan here
Re: How to create Plopable items for the Mayor Menu
« Reply #197 on: January 31, 2017, 09:12:56 AM »
Ernest,
Just in case it isn't/wasn't understood (as you weren't familiar with Hex numbers at the time, it obviously wasn't), whenever a range if IDs is allocated (whether here, or for textures, or for family IDs), those numbers replaced by the asterisk denote the ID range you have to work with.

According to Vortext's post, you have the entire range 0xEA53****, this equates to 0xEA530000 - 0xEA53FFFF.  In Hex, this means you have FFFF number of IDs to work with (try to think of the last 4 digits as your working range).  FFFF in hex equates to 65535 in decimal.  So that's how many IDs you can create within the range you currently have allocated to you.  I think you missed Vortext's point that your allocated range is actually bigger than you thought it was.

If your spreadsheet lists all the ranges you've used so for (with each range equating to 8 IDs), you still have a huge number of potential IDs available to you.  As mgb204 said, ID ranges cannot be issued to meet some preconceived numbering scheme.  They have to be issued within a contiguous range, and with the understanding that most or all IDs within the allocated range will be used before a new range is allocated.  Trying to manage allocations any other way just isn't doable.

Since your spreadsheet ends at 5C09, you still have 5C0A - FFFF to work with.  Even if you don't go back and fill in all the holes, that equates to another @42,000 IDs to work with.  If you do go back and use IDs found in the two large existing holes, you have 8300+ unused IDs before your first listed range (0000 - 2091), and another 3900+ between the first and second listed range (209A - 2FFF).  Thereafter, in each listed range until you started using all the hex characters (right about #270), you're were giving up 6 IDs (A-F) in each range (or about 1600 IDs) (trying to go back and recapture those IDs would probably turn into a nightmare for you as far as documenting what's used where, so those IDs are probably realistically lost to you).

Since essentially every item in the game is referenced by a Hex number, as a creator of custom content, while you don't have to be an expert in HEX, a basic understanding is certainly necessary.  Looking at your spreadsheet and reading your post, it looks like your understanding is there now, but you got confused as to what your total range was.

Also, in case you weren't aware, if you open the Calculator available in Windows, and change the view to Programmer, you can easily translate a Hex number to Decimal, or vice-versa.  You can also conduct math operations using Hex numbers, the most useful of which would probably be subtracting the last 4 characters of your last used ID from FFFF, then translate the result to Decimal, to give you an idea of how many remaining IDs you have available.

Offline evarburg

Re: How to create Plopable items for the Mayor Menu
« Reply #198 on: March 19, 2018, 12:25:48 PM »
Just checking that thread, and is it only me or does the very first jeronij's post show up as (rather illegible) code ?

Offline Andreas

  • Administrator
  • Forums Legend
  • *
  • Posts: 4772
  • Total likes: 985
  • Reputation: 33
    • SimCityPlaza
  • CL: ()bobby() Transit Controller
Re: How to create Plopable items for the Mayor Menu
« Reply #199 on: March 19, 2018, 12:29:41 PM »
It's not "illegible code", but rather some former HTML code that doesn't show up as HTML anymore, so the tags are included as plain text. Try to ignore everything that is in <...> brackets, then you should be fine. :)