Author Topic: (PHP) Barcode Generator  (Read 8970 times)

0 Members and 1 Guest are viewing this topic.

Offline combatking0

  • JavaScript lives!
  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4569
  • Karma: 235
  • Retroman!
    • View Profile
    • Combat King's Barcode Battler Home
(PHP) Barcode Generator
« on: May 17, 2007 »
Hello,

I have built a PHP Barcode Generator! It can handle 8, 12 and 13 digit barcodes.
See it in action at
http://barcodebattler.co.uk/gen.php

I won't reveal the full source as I plan to sell it from my site, but if anybody wants help programming something similar I'd be glad to help.
You are our 9001st visitor.
Challenge Trophies Won:

Offline rain_storm

  • Here comes the Rain
  • DBF Aficionado
  • ******
  • Posts: 3088
  • Karma: 182
  • Rain never hurt nobody
    • View Profile
    • org_100h
Re: (PHP) Barcode Generator
« Reply #1 on: May 17, 2007 »
Is that like a card game similar to top trumps or yugioh interesting I'd like to see this in action

Challenge Trophies Won:

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17394
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: (PHP) Barcode Generator
« Reply #2 on: May 19, 2007 »
I don't know why, perhaps I am stupid but I cannot think of a reason why you'd want a barcode generator?!?!

Would you generate your own barcodes and take them to clothes shops etc and stick them over more expensive price tabs to get cheaper goods?!?!

It's got to be one of the most unusual things I have ever seen posted on this forum.. I can't think of how you'd research something like a bar code?

I guess that the important bits are the white bits that reflect the laser back? And I suppose that the bar code reader has to work out the scale of the barcode and then the white strips have width in proportion to the scale of the whole barcode... But why would you code one? I am interested...

Also how did you test it?

This has to be a joke.... right? Nope. Ok, I didn't think so!

Have some Karma and keep on missing the medication :D
Shockwave ^ Codigos
Challenge Trophies Won:

Offline combatking0

  • JavaScript lives!
  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4569
  • Karma: 235
  • Retroman!
    • View Profile
    • Combat King's Barcode Battler Home
Re: (PHP) Barcode Generator
« Reply #3 on: May 21, 2007 »
.
Is that like a card game similar to top trumps or yugioh interesting I'd like to see this in action

The background to Barcode Battler is -
It was created in 1990, released in 1991, and went world wide in 1992/3.
The game converts barcodes into Heroes and Enemies (which can be either Wizards or Warriors).
Wizards can use magic spells, Warriors can use Weapons and Armour items.
The gameplay is very repetitive and simple - you can choose to either attack or heal on each turn after scanning in your fighter and power-up.
Essentially, it is a very basic version of Yu-Gi-Oh or Pokemon, and it predates both :)

I am in the process of making a new card set (not a trading card game, so Wizards of the Coast cannot sue me) for the Barcode Battler which uses some of the lesser-known aspects of the machine, such as enemy stat reduction, use of fighters as power-ups (as a Gang-Up option perhaps) and other bits, but if you don't like the Barcode Battler in the first place, you probably won't like my expansion either.

There are many places to find a Barcode Battler - your local second hand game shop, online auction sites and even certain Barcode Battler specialist sites have them for sale.

--------------------------------------------------------------

Some people might want a barcode generator on their site if:
They own a Barcode Battler, Scannerz or other barcode game site
They want to print a lot of barcodes off for catalogging stuff with a standard barcode reader
They are fascinated by black & white stripes

I would never encourage the use of my generator for creating cheaper barcodes to put on expensive items as this constitutes theft - another site has encouraged this and has been shut down.

Barcodes are quite easy to research and understand - my previous barcode generator used JavaScript to display a series of 13 to 17 images next to eachother, but this was unweildy. The php solution creates a single image.

For my own purposes, I created the barcode generator to act as a web counter on my site, as well as to provide me with working barcodes for my new Barcode Battler game.

The Barcode Battler reads the generated barcodes and gives the same results as equivalent barcodes on bought goods.

No, this is one of the few serious things I have posted recently.

Thanks for the Korma.

I'll help anyone who wants details on building images using PHP, as this can be a little tricky. The commands are similar to some of those in Yabasic though.
« Last Edit: May 21, 2007 by combatking0 »
You are our 9001st visitor.
Challenge Trophies Won:

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17394
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: (PHP) Barcode Generator
« Reply #4 on: May 21, 2007 »
Wow, I had no idea that there was actually a game similar to Pokemon etc using barcodes, and I am even more amazed that it pre-dates it. I don't know where I was when all this was popular.

Was it a popular thing?

My comment about replacing the prices on shop bought goods was very tongue in cheek, however I am astounded to hear that a: It would actually work and B: It had already been done.

Personally I would never condone shoplifting, I was once caught stealing from my local co-op when I was a teenager.. I was quite fit back then, but the manager of the supermarket was fitter and I was caught, arrested and got a caution. That was enough to put me off.

If I had access to this back then, it wouldn't have made any difference at all because I was underage and stealing beer because I couldn't get served :P (Underage drinking is something else I would never condone).

But have some more Karma for inventing something that *could* be used to perpetrate the ultimate form of shoplifting!

Simply awesome.

Awesome as f***. I must be sick but the thought of something as innocent as this having such potential for mis-use is very appealing, even if it is something I would never do myself.
« Last Edit: May 25, 2007 by Jim »
Shockwave ^ Codigos
Challenge Trophies Won:

Offline rain_storm

  • Here comes the Rain
  • DBF Aficionado
  • ******
  • Posts: 3088
  • Karma: 182
  • Rain never hurt nobody
    • View Profile
    • org_100h
Re: (PHP) Barcode Generator
« Reply #5 on: May 22, 2007 »
I like the idea I remember Magic the Gathering and the worst thing about it was keeping track of which spells were in effect but with a barcode you just scan that stuff in so it takes out the all of the guese work

Challenge Trophies Won:

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Re: (PHP) Barcode Generator
« Reply #6 on: May 22, 2007 »
The barcode itself doesn't encode the price, it's just a unique product ID that the till looks up in a database, so swapping barcodes won't do you much good if you take your barcode-swapped PS3 up to the till and it comes up 'bananas, £1.50/Kg'.

Jim
Challenge Trophies Won:

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17394
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: (PHP) Barcode Generator
« Reply #7 on: May 26, 2007 »
It would be more useful for clothes theft..

For instance, you could buy a cheap shirt, then use that reference to generate a new bar code which could be stuck on a nice £60 ben Sherman shirt or something like that.

Not that I'd ever dream of doing anything like that myself you understand.
Shockwave ^ Codigos
Challenge Trophies Won:

Offline Yaloopy

  • Death From Above
  • DBF Aficionado
  • ******
  • Posts: 2875
  • Karma: 35
    • View Profile
    • UltraPaste
Re: (PHP) Barcode Generator
« Reply #8 on: July 21, 2007 »
I won't reveal the full source as I plan to sell it from my site, but if anybody wants help programming something similar I'd be glad to help.
Some nice money to be made there... http://programsdb.com/script/22/13715/Bokai_Barcode_Image_Generator_Java_component_BarcodeJSP.html
Fuck L. Ron Hubbard and fuck all his clones.
Challenge Trophies Won:

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17394
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: (PHP) Barcode Generator
« Reply #9 on: July 21, 2007 »
$299 for that! Well.

I wouldn't think many people out there would need one?
Shockwave ^ Codigos
Challenge Trophies Won: