October 08, 2024, 01:49:57 am
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Forum
Help
Search
Calendar
Login
Register
Forum
>
Simmers' Paradise
>
My Game, My Way
>
Modding Database
>
Constant Value vs. Literal Value
Pages: [
1
]
« previous
next »
Print
Author
Topic: Constant Value vs. Literal Value (Read 5038 times)
0 Members and 1 Chinese Bot are viewing this topic.
Eric
BANNED
Member
Posts: 1404
Constant Value vs. Literal Value
«
on:
August 28, 2005, 05:53:07 pm »
Constant Values are stored in BCON files. The ID of a Constant does not always equal the value assigned to the Constant. Global and semiglobal BCON files can be changed by Expansion Packs as they are released, and may interfere with your object's functionality if you are using the Literal Value that equals the Constant Value instead of the Constant itself.
Literal Values are assigned by the object creator within an objects script and will not change with the release of an Expansion Pack. Literal Values (if needed) must be manually changed by a creator/modder.
-------------------------------------------------------------
At this time, both of the following 2 lines of script achieve the same result, they allow you to place an object on the mantle of a fireplace.
ex. 1:
(using Literal Value)
My 0x0004 Set Flag Literal Value 0x000B
ex. 2:
(using Constant Value)
My 0x0004 Set Flag Constant Value 0x0101:0x0B
0x0101
is the global BCON file that the constant is stored in.
0x0B
is the Constant Value ID.
When using the Constant Value, if 0x0B equals B before an Expansion Pack is released and then equals 6 after the Expansion Pack is released, you will still be able to place your object on the mantle. If you were using the Literal Value of 0x000B to set the flag, your object would no longer be able to sit on a Mantle because the global flag value was changed by Maxis.
-------------------------------------------------------------
When assigning flag values, that are used globally or semiglobally, to an object, it is always better to use the games Constant Values (if they exist) instead of Literal Values.
Feel free to offer your input and/or correct errors on my part.
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Welcome to insimenator.org
-----------------------------
=> Rules, News & Announcements
=> Issues & Suggestions
=> Updates
=> The Welcome Wagon
-----------------------------
Simmers' Paradise
-----------------------------
=> General Sims 2 Discussion
===> Sims 2 Apartment Life Chat
===> Sims 2 Pictures
=====> I Want My Own Thread
===> Contests & Challenges
===> Sims Stories
=====> Anecdote Assistance
===> Sims 2 Videos
=> General Sims 2 Help
===> Apartment Life Help
===> FreeTime Help
===> Sims 2 FAQ's
===> Mac-Users Only Peer Support
===> Sims Life Stories Help
=> Requests
===> Sims
===> Clothing & Body Mesh's
===> Genetics & Makeup
=====> Hair
=====> Skintones
=====> Eyes
=====> Facial Items
=====> Accessories
===> Objects & Recolors
===> Pets
===> Mods & Careers
===> Lots & Neighborhoods
=> Where Can I Find...?
=> Sims 2 Web
=> My Game, My Way
===> Tutorials
===> Modding Database
===> Content Creation & Recoloring Help
=====> Resource Corner
=====> The Shape of Stuff to Come
-----------------------------
A Safe Haven
-----------------------------
=> General Discussion
===> Forum Games
===> Quizzes
=> Teen Discussion
-----------------------------
The Sims 4
-----------------------------
=> Sims 4 Buzz
=> Sims 4 Help
=> The Sims 4 Pictures
=> The Sims 4 Downloads
=> Sims 4 Requests
=> The Sims 4 WCIF
=> The Sims 4 Web
-----------------------------
Sims 2 Community Downloads
-----------------------------
=> Custom Sims
===> Self-Sims
===> Sim Families & Groups
===> Sim Hunks
===> Sim Honeys
===> Sim Celebrities
=> Custom Pets
===> Cats
===> Dogs
===> Pet Genetics
=> Custom Clothing
===> Elder/Adult
=====> Women
=====> Men
===> Teen/Young Adult
=====> Misses
=====> Junior
===> Child/Toddler
=====> Girl
=====> Boy
===> Multi-Age
=====> Female
=====> Male
===> Mixed Clothing
=> Custom Genetics & Make-up
===> Hair
=====> Female Hair
=====> Male Hair
=====> Mixed Sets/Unisex
===> Skintones
===> Eyes
===> Make Up
===> Facial Hair
===> Accessories
=> Custom Objects & Recolors
===> Walls, Floors & Murals
=> Misc. Mods and Careers
===> CAS Scenes & Music
=> Residential/Community Lots & Neighborhoods
===> Residential
===> Community
===> Neighborhoods
===> Apartment Buildings
=> InSIMenator Group Projects
===> April Foolery
===> The Trashed Set
===> Happy Holidays
===> The Glorious People's Revolution Project
=> Insimenator - UNSUPPORTED
-----------------------------
Resident Creators
-----------------------------
=> KarialSim, Enchantress and WadeB's Parlour
===> Places
===> And Things
===> The Closet
=====> People
=====> The Salon
=> Oneblondemomma & Franciele's Boutique
===> Clothes
=====> Curvaceous Women
=====> Tailored Men
=====> Trendy Teens
=====> Misc. Designs
=====> Meshes
=> ReginaS's Sims
===> ReginaS's Sims
=> Skye's Creations
===> Skye Chat
===> Objects
===> Homes
===> Other Lots
===> Clothing
===> Sims
=====> Celebrity Watch
=====> Everyday Folk
=====> Fairytales
=====> Goth & Fantasy
=> Squinge's Mods
===> Squinge's Mods
=====> EP1 Mods
=====> EP2 Mods
=====> EP3 Mods
=====> EP4 Mods
=====> EP5 Mods
=====> EP6 Mods
=====> EP7 Mods
=====> EP8 Mods
===> Squinge's Sims 4 Mods
===> Squinge's Mod Help Section
===> Mod Requests
=> The Consortium
===> Meshes
=====> Requests
===> Clothes
===> Guest Recolors
=> Urban Decay by Riverofjazz and DivaJai
===> Grown & Sexy Clothing
=====> Diva's
=====> Urban Male
===> Teens Flygear
=====> Misses
=====> Junior
===> SugarNSpice & Puppydog tails
=====> Lilgirls
=====> Lilboys
===> Glam & Glitter
===> Meshes
===> Models
=> Wirelessguy's Wired Up Endeavours
===> Clothing for...
=====> Bodybuilder Guys
=====> Marvine's Athletic Guys
=====> Marvine's Slimmer Bodybuilder
=====> Super Hero Meshes
=====> All The Other Sims
===> Wirelessguy's Lucky Dip
=====> Object Recolours
=======> Old 2nd Hand Objects
=======> Shiny Objects
-----------------------------
Retired Creators
-----------------------------
=> Amun-RA's Dark Obsession
===> Amun-RA's Dark Obsession
=> Arcia's Specials
===> Arcia's Babylon
===> Arcias Specials
=> BlooM's Base
===> Adults - Elders
=====> Meshes
=====> Guest Recolors
===> Teens - Kids
=====> Meshes
=====> Guest Recolors
===> Miscellaneous Bits & Pieces
=====> Accessoires
=====> Objects
=====> Cars
===> SexyFeet Replacements
===> Custom Bodyshapes
=====> Bigger Pregnancy Belly
=====> Handicapped
=====> Neanderthal
=====> Rubens
=====> Classic Pinupgirl
=====> Fashionmodel
=====> Rengal
=====> Rio
=====> Punkjunkie
=====> Others
=> Enayla's Escapades
===> Eyes for the Eyeless
===> Skins for the Skinless
=> Jay's Home for Fallen Angels
===> Celestial Clothing
===> Objects of Virtue
===> Seraphic Sets
===> Stained Glass
===> Sublime Floors, Walls, Terrains
=> Marvine & BeosBoxBoy's Projects
===> Custom Body Meshes
=====> *NEW* Huge Bodybuilder
=====> Bodybuilder
=======> Bodybuilder Base Meshes & Linked Skintones
=======> Casual : Vêtements décontractés
=======> Formal : Tenues de soirée
=======> Underwear : Sous-vêtements
=======> Sleepwear : Vêtements de nuit
=======> Swimwear : Maillots de bain
=======> Activewear : Vêtements de sport
=======> Fantasy : Fantastique - Mythologie
=======> Season EP Apparel | vêtements d'extérieur pour Au fil des saisons
=====> Slim Bodybuilder
=====> Athlete : Athlète
=====> Superhero : Super héros
=====> Bodybuilder & Athlete Requests
=====> Satyr Project : Projet des Satyres
=====> Merfolk Project:Le Peuple de la Mer
=====> Teen Titans - Bodybuilder Teens
=====> Female Projects
=====> Not-so-Average Joes
=====> Square Pegs: Le tiroir du bas
=====> SynapticSim's Lean BB
===> Custom Genetics & Miscellaneous Mayhem
=====> Custom Hair, Eyes, Etc.
=====> Le musée des Arts Douteux
=====> The Post-Modernist Collection
=====> Maxis-Matching & Modifications
===> TBW_459, BBM Teen Project
===> Guest recolours & add-ons
=====> The Dark Project (off-site link)
=====> Male
=====> Female
=====> Fit Couples
=====> Merfolk Additions
=====> Alexasrosa's Fantasies
=====> Howard's Clothing & Smallwear
=> Netra Creations
===> Big Girls
===> Thick Madames
===> Teen Divas
===> Genetics
===> Other
=> Warlokk's Tower
===> Female Bodyshape Variety Project
===> Female Hi-Res Bodyshape Project
=====> Classic Pinup
=====> Renaissance Gal
=====> Fashion Model
=====> PowerGirl
=====> Booty Gal
=====> Rio
=====> ToonGal
=====> Voluptuous
=====> Faerie
===> Guest Bodyshape Add-ons
=====> Classic Pinup
=====> Renaissance Gal
=====> Fashion Model
=====> PowerGirl
=====> Booty Gal
=====> Rio
=====> ToonGal
=====> Voluptuous
=====> Faerie
=====> Multi-shape
=====> Poppeboy's Fitchick
===> BodyShape Requests
-----------------------------
The Sims 3
-----------------------------
=> Sims 3 Buzz
=> Sims 3 Pictures
=> Sims 3 Help
=> Sims 3 Web
=> Sims 3 Community Downloads
===> Pudding Exchange
===> Pudding Wrappers
===> Pudding Containers
===> Pudding Flavours
===> Pudding Improvements
===> Pudding WCIF
===> Pudding Requests
=> Sims Medieval
Loading...
SimplePortal 2.1.1